CheckProvider
class CheckProvider implements CheckProviderInterface, ContainerAwareInterface (View source)
Loads access checkers from the container.
Traits
Properties
| protected array | $checkIds | Array of registered access check service ids. |
|
| protected AccessInterface[] | $checks | Array of access check objects keyed by service id. |
|
| protected array | $checkMethods | Array of access check method names keyed by service ID. |
|
| protected | $checksNeedsRequest | Array of access checks which only will be run on the incoming request. |
|
| protected array | $staticRequirementMap | An array to map static requirement keys to service IDs. |
|
| protected array | $dynamicRequirementMap | An array to map dynamic requirement keys to service IDs. |
Methods
Registers a new AccessCheck by service ID.
A list of checks that needs the request.
For each route, saves a list of applicable access checks to the route.
Lazy-loads access check services.
Determine which registered access checks apply to a route.
Compiles a mapping of requirement keys to access checker service IDs.
Details
addCheckService(string $service_id, string $service_method, array $applies_checks = [], bool $needs_incoming_request = FALSE)
Registers a new AccessCheck by service ID.
array
getChecksNeedRequest()
A list of checks that needs the request.
setChecks(RouteCollection $routes)
For each route, saves a list of applicable access checks to the route.
callable
loadCheck(string $service_id)
Lazy-loads access check services.
protected array
applies(Route $route)
Determine which registered access checks apply to a route.
protected
loadDynamicRequirementMap()
Compiles a mapping of requirement keys to access checker service IDs.