class LogOutController implements RequestHandlerInterface

Traits

Properties

protected Application $app
protected Dispatcher $events
protected SessionAuthenticator $authenticator
protected Rememberer $rememberer
protected Factory $view
protected UrlGenerator $url

Methods

assertPermission($condition)

No description

assertCan(User $actor, string $ability, mixed $arguments = [])

No description

assertGuest(User $actor)

No description

assertRegistered(User $actor)

No description

assertAdmin(User $actor)

No description

__construct(Application $app, Dispatcher $events, SessionAuthenticator $authenticator, Rememberer $rememberer, Factory $view, UrlGenerator $url)

No description

ResponseInterface
handle(ServerRequestInterface $request)

No description

Details

protected assertPermission($condition)

Parameters

$condition

Exceptions

PermissionDeniedException

protected assertCan(User $actor, string $ability, mixed $arguments = [])

Parameters

User $actor
string $ability
mixed $arguments

Exceptions

PermissionDeniedException

protected assertGuest(User $actor)

Parameters

User $actor

Exceptions

PermissionDeniedException

protected assertRegistered(User $actor)

Parameters

User $actor

Exceptions

PermissionDeniedException

protected assertAdmin(User $actor)

Parameters

User $actor

Exceptions

PermissionDeniedException

__construct(Application $app, Dispatcher $events, SessionAuthenticator $authenticator, Rememberer $rememberer, Factory $view, UrlGenerator $url)

Parameters

Application $app
Dispatcher $events
SessionAuthenticator $authenticator
Rememberer $rememberer
Factory $view
UrlGenerator $url

ResponseInterface handle(ServerRequestInterface $request)

Parameters

ServerRequestInterface $request

Return Value

ResponseInterface

Exceptions

TokenMismatchException