class SecurityExtension extends Twig_Extension
SecurityExtension exposes security context features.
__construct(SecurityContextInterface $context = null) | ||
isGranted($role, $object = null, $field = null) | ||
getFunctions() {@inheritdoc} | ||
string | getName() Returns the name of the extension. |
{@inheritdoc}
Returns the name of the extension.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Bridge/Twig/Extension/SecurityExtension.html