class FilterFirewall implements FirewallInterface (View source)

Default Firewall which analyzes the request with a RequestFilter chain.

Properties

protected ObjectManagerInterface $objectManager
protected RequestPatternResolver $requestPatternResolver
protected InterceptorResolver $interceptorResolver
protected RequestFilter[] $filters
protected bool $rejectAll

If set to true the firewall will reject any request except the ones explicitly allowed by a \Neos\Flow\Security\Authorization\AccessGrantInterceptor

Methods

__construct(ObjectManagerInterface $objectManager, RequestPatternResolver $requestPatternResolver, InterceptorResolver $interceptorResolver)

Constructor.

void
injectSettings(array $settings)

Injects the configuration settings

void
blockIllegalRequests(ActionRequest $request)

Analyzes a request against the configured firewall rules and blocks any illegal request.

createFilterFromConfiguration(array $filterConfiguration)

No description

Details

__construct(ObjectManagerInterface $objectManager, RequestPatternResolver $requestPatternResolver, InterceptorResolver $interceptorResolver)

Constructor.

Parameters

ObjectManagerInterface $objectManager

The object manager

RequestPatternResolver $requestPatternResolver

The request pattern resolver

InterceptorResolver $interceptorResolver

The interceptor resolver

void injectSettings(array $settings)

Injects the configuration settings

Parameters

array $settings

Return Value

void

void blockIllegalRequests(ActionRequest $request)

Analyzes a request against the configured firewall rules and blocks any illegal request.

Parameters

ActionRequest $request

The request to be analyzed

Return Value

void

Exceptions

AccessDeniedException

protected RequestFilter createFilterFromConfiguration(array $filterConfiguration)

No description

Parameters

array $filterConfiguration

Return Value

RequestFilter

Exceptions

NoInterceptorFoundException
NoRequestPatternFoundException