W3cubDocs

/Symfony 4.1

AuthorizationCheckerInterface

interface AuthorizationCheckerInterface

The AuthorizationCheckerInterface.

Methods

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

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

Details

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

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

Parameters

mixed $attributes
mixed $subject

Return Value

bool