Authorize
in package

FinalYes

Use to indicate that a route should only be accessed by an authorized user.

Declare this attribute on the process method of each Routable that requires authorization.

Attributes
#[Attribute]
\Attribute::TARGET_METHOD

Table of Contents

Methods

getResolvedRoutable()  : RoutableInterface|false
Return the target Routable when the request has been authenticated. Otherwise, return the fallback Routable.

Methods

getResolvedRoutable()

Return the target Routable when the request has been authenticated. Otherwise, return the fallback Routable.

public getResolvedRoutable(AbstractProtectedRoutable $target, AuthenticatorInterface $authenticator) : RoutableInterface|false
Parameters
$target : AbstractProtectedRoutable
$authenticator : AuthenticatorInterface
Return values
RoutableInterface|false

        
On this page

Search results