PHP Class FluxBB\Server\AuthorizationServer

Inheritance: implements FluxBB\Server\ServerInterface
Afficher le fichier Open project: fluxbb/core

Protected Properties

Свойство 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.

Méthodes publiques

Méthode Description
__construct ( Illuminate\Contracts\Container\Container $container, FluxBB\Server\ServerInterface $next ) Create the authorization server instance.
dispatch ( Request $request ) : Response Resolve the request and return a response.
registerAuthorizer ( string $name, string $authorizerClass ) Register an authorizer to be used for a given action.

Méthodes protégées

Méthode Description
authorize ( Request $request ) : void Authorize the given request.
getSubject ( ) : FluxBB\Models\HasPermissions Get the authorization subject from the environment.
resolveAuthorizer ( Request $request ) : Authorizer | null Resolve the matching authorizer instance.

Method Details

__construct() public méthode

Create the authorization server instance.
public __construct ( Illuminate\Contracts\Container\Container $container, FluxBB\Server\ServerInterface $next )
$container Illuminate\Contracts\Container\Container
$next FluxBB\Server\ServerInterface

authorize() protected méthode

Authorize the given request.
protected authorize ( Request $request ) : void
$request Request
Résultat void

dispatch() public méthode

Resolve the request and return a response.
public dispatch ( Request $request ) : Response
$request Request
Résultat Response

getSubject() protected méthode

Get the authorization subject from the environment.
protected getSubject ( ) : FluxBB\Models\HasPermissions
Résultat FluxBB\Models\HasPermissions

registerAuthorizer() public méthode

Register an authorizer to be used for a given action.
public registerAuthorizer ( string $name, string $authorizerClass )
$name string
$authorizerClass string

resolveAuthorizer() protected méthode

Resolve the matching authorizer instance.
protected resolveAuthorizer ( Request $request ) : Authorizer | null
$request Request
Résultat FluxBB\Auth\Authorizer | null

Property Details

$authorizers protected_oe property

The authorizer classes for registered handlers.
protected array $authorizers
Résultat array

$container protected_oe property

The container instance.
protected Container,Illuminate\Contracts\Container $container
Résultat Illuminate\Contracts\Container\Container

$next protected_oe property

The wrapped server instance.
protected ServerInterface,FluxBB\Server $next
Résultat FluxBB\Server\ServerInterface