W3cubDocs

/Symfony 2.8

Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface

interface AuthorizationCheckerInterface

The AuthorizationCheckerInterface.

Methods

bool isGranted(mixed $attributes, mixed $object = null)

Checks if the attributes are granted against the current authentication token and optionally supplied object.

Details

public bool isGranted(mixed $attributes, mixed $object = null)

Checks if the attributes are granted against the current authentication token and optionally supplied object.

Parameters

mixed $attributes
mixed $object

Return Value

bool