ProtectedRoutableResolver
in package
implements RoutableResolverInterface

Returns either the given Routable or false when the user is not authenticated.

Authorization is opt-in. Therefore, the given Routable will be returned if it is not configured with an Authorize attribute.

Table of Contents

Interfaces

RoutableResolverInterface

Methods

__construct()  : mixed
resolve()  : RoutableInterface|false

Methods

__construct()

public __construct(AuthenticatorInterface $authenticator) : mixed
Parameters
$authenticator : AuthenticatorInterface
Return values
mixed

resolve()

public resolve(RoutableInterface $target) : RoutableInterface|false
Parameters
$target : RoutableInterface
Return values
RoutableInterface|false

Search results