PermissionTwigExtension
class PermissionTwigExtension extends AbstractExtension (View source)
Methods
__construct(callable $permissionChecker)
No description
array
getFunctions()
No description
bool
can(string $permission)
Whether the current user holds the given permission; false when unauthenticated.
Details
__construct(callable $permissionChecker)
No description
array
getFunctions()
No description
bool
can(string $permission)
Whether the current user holds the given permission; false when unauthenticated.