ProtectedRoutableResolver
in package
implements
RequestProcessorResolverInterface
FinalYes
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
- RequestProcessorResolverInterface
Methods
- __construct() : mixed
- resolve() : RequestProcessorInterface|false
Methods
__construct()
public
__construct(AuthenticatorInterface $authenticator) : mixed
Parameters
- $authenticator : AuthenticatorInterface
resolve()
public
resolve(RequestProcessorInterface $target) : RequestProcessorInterface|false
Parameters
- $target : RequestProcessorInterface