Property | Type | Description | |
---|---|---|---|
$authorizers | array | The authorizer classes for registered handlers. | |
$container | Illuminate\Contracts\Container\Container | The container instance. | |
$next | FluxBB\Server\ServerInterface | The wrapped server instance. |
Method | Description | |
---|---|---|
__construct ( Illuminate\Contracts\Container\Container $container, FluxBB\Server\ServerInterface $next ) | Create the authorization server instance. | |
dispatch ( |
Resolve the request and return a response. | |
registerAuthorizer ( string $name, string $authorizerClass ) | Register an authorizer to be used for a given action. |
Method | Description | |
---|---|---|
authorize ( |
Authorize the given request. | |
getSubject ( ) : FluxBB\Models\HasPermissions | Get the authorization subject from the environment. | |
resolveAuthorizer ( |
Resolve the matching authorizer instance. |
public __construct ( Illuminate\Contracts\Container\Container $container, FluxBB\Server\ServerInterface $next ) | ||
$container | Illuminate\Contracts\Container\Container | |
$next | FluxBB\Server\ServerInterface |
public dispatch ( |
||
$request | ||
return |
protected getSubject ( ) : FluxBB\Models\HasPermissions | ||
return | FluxBB\Models\HasPermissions |
public registerAuthorizer ( string $name, string $authorizerClass ) | ||
$name | string | |
$authorizerClass | string |
protected resolveAuthorizer ( |
||
$request | ||
return |
protected array $authorizers | ||
return | array |
protected Container,Illuminate\Contracts\Container $container | ||
return | Illuminate\Contracts\Container\Container |