An access check service determines access rules for particular routes.
Expanded class hierarchy of AccessCheckInterface
All classes that implement AccessCheckInterface
interface AccessCheckInterface {
/**
* Declares whether the access check applies to a specific route or not.
*
* @param \Symfony\Component\Routing\Route $route
* The route to consider attaching to.
*
* @return bool
* TRUE if the check applies to the passed route, FALSE otherwise.
*/
public function applies(Route $route);
/**
* Checks for access to route.
*
* @param \Symfony\Component\Routing\Route $route
* The route to check against.
* @param \Symfony\Component\HttpFoundation\Request $request
* The request object.
*
* @return mixed
* TRUE if access is allowed.
* FALSE if not.
* NULL if no opinion.
*/
public function access(Route $route, Request $request);
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AccessCheckInterface:: |
public | function | Checks for access to route. | 4 |
AccessCheckInterface:: |
public | function | Declares whether the access check applies to a specific route or not. | 4 |