Neos\Flow\Security\Authorization\FilterFirewall::blockIllegalRequests PHP Method

blockIllegalRequests() public method

Analyzes a request against the configured firewall rules and blocks any illegal request.
public blockIllegalRequests ( ActionRequest $request ) : void
$request Neos\Flow\Mvc\ActionRequest The request to be analyzed
return void
    public function blockIllegalRequests(ActionRequest $request)
    {
        $filterMatched = false;
        /** @var $filter RequestFilter */
        foreach ($this->filters as $filter) {
            if ($filter->filterRequest($request)) {
                $filterMatched = true;
            }
        }
        if ($this->rejectAll && !$filterMatched) {
            throw new AccessDeniedException('The request was blocked, because no request filter explicitly allowed it.', 1216923741);
        }
    }