Checks access so that every checker should allow access.
array $checks: Contains the list of checks on the route definition.
\Symfony\Component\Routing\Route $route: The route to check access to.
\Symfony\Component\HttpFoundation\Request $request: The incoming request object.
bool Returns TRUE if the user has access to the route, else FALSE.
protected function checkAll(array $checks, Route $route, Request $request) {
$access = FALSE;
foreach ($checks as $service_id) {
if (empty($this->checks[$service_id])) {
$this
->loadCheck($service_id);
}
$service_access = $this->checks[$service_id]
->access($route, $request);
if ($service_access === AccessCheckInterface::ALLOW) {
$access = TRUE;
}
else {
// On both KILL and DENY stop.
$access = FALSE;
break;
}
}
return $access;
}