W3cubDocs

/Symfony 4.1

SecurityExtension

class SecurityExtension extends AbstractExtension

SecurityExtension exposes security context features.

Methods

__construct(AuthorizationCheckerInterface $securityChecker = null)
isGranted($role, $object = null, $field = null)
getFunctions()

{@inheritdoc}

getName()

{@inheritdoc}

Details

__construct(AuthorizationCheckerInterface $securityChecker = null)

Parameters

AuthorizationCheckerInterface $securityChecker

isGranted($role, $object = null, $field = null)

Parameters

$role
$object
$field

getFunctions()

{@inheritdoc}

getName()

{@inheritdoc}

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bridge/Twig/Extension/SecurityExtension.html