PHP Класс FluxBB\Server\AuthorizationServer

Наследование: implements FluxBB\Server\ServerInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$authorizers array The authorizer classes for registered handlers.
$container Illuminate\Contracts\Container\Container The container instance.
$next FluxBB\Server\ServerInterface The wrapped server instance.

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

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() защищенный Метод

Authorize the given request.
protected authorize ( Request $request ) : void
$request Request
Результат void

dispatch() публичный Метод

Resolve the request and return a response.
public dispatch ( Request $request ) : Response
$request Request
Результат Response

getSubject() защищенный Метод

Get the authorization subject from the environment.
protected getSubject ( ) : FluxBB\Models\HasPermissions
Результат FluxBB\Models\HasPermissions

registerAuthorizer() публичный Метод

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

resolveAuthorizer() защищенный Метод

Resolve the matching authorizer instance.
protected resolveAuthorizer ( Request $request ) : Authorizer | null
$request Request
Результат FluxBB\Auth\Authorizer | null

Описание свойств

$authorizers защищенное свойство

The authorizer classes for registered handlers.
protected array $authorizers
Результат array

$container защищенное свойство

The container instance.
protected Container,Illuminate\Contracts\Container $container
Результат Illuminate\Contracts\Container\Container

$next защищенное свойство

The wrapped server instance.
protected ServerInterface,FluxBB\Server $next
Результат FluxBB\Server\ServerInterface