CheckProviderInterface
interface CheckProviderInterface (View source)
Provides the available access checkers by service IDs.
Access checker services are added by ::addCheckService calls and are loaded by ::loadCheck.
The checker provider service and the actual checking is separated in order to not require the full access manager on route build time.
Methods
setChecks(RouteCollection $routes)
For each route, saves a list of applicable access checks to the route.
addCheckService(string $service_id, string $service_method, array $applies_checks = [], bool $needs_incoming_request = FALSE)
Registers a new AccessCheck by service ID.
callable
loadCheck(string $service_id)
Lazy-loads access check services.
array
getChecksNeedRequest()
A list of checks that needs the request.
Details
setChecks(RouteCollection $routes)
For each route, saves a list of applicable access checks to the route.
addCheckService(string $service_id, string $service_method, array $applies_checks = [], bool $needs_incoming_request = FALSE)
Registers a new AccessCheck by service ID.
callable
loadCheck(string $service_id)
Lazy-loads access check services.
array
getChecksNeedRequest()
A list of checks that needs the request.