symfony / 3.4 / symfony / component / security / core / authorization / authorizationcheckerinterface.html

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