PHP 클래스 FluxBB\Server\AuthorizationServer

상속: implements FluxBB\Server\ServerInterface
파일 보기 프로젝트 열기: fluxbb/core

보호된 프로퍼티들

프로퍼티 타입 설명
$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