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.
http://api.symfony.com/4.0/Symfony/Bridge/Twig/Extension/SecurityExtension.html