Symfony\Component\Security\Core\SecurityContext::isGranted
Checks if the attributes are granted against the current token.
Signature
public function isGranted(mixed
$attributes,
[mixed|null
$object = null] )
Parameters
$attributes
— mixed$object
— object
Returns
- Boolean
Errors/Exceptions
-
AuthenticationCredentialsNotFoundException
- when the security context has no authentication token.