RequestFilter
class RequestFilter (View source)
A RequestFilter is configured to match specific ActionRequests and call a InterceptorInterface if needed.
Properties
protected RequestPatternInterface | $pattern | ||
protected InterceptorInterface | $securityInterceptor |
Methods
__construct(RequestPatternInterface $pattern, InterceptorInterface $securityInterceptor)
Constructor.
getRequestPattern()
Returns the set request pattern
getSecurityInterceptor()
Returns the set security interceptor
bool
filterRequest(ActionRequest $request)
Tries to match the given request against this filter and calls the set security interceptor on success.
Details
__construct(RequestPatternInterface $pattern, InterceptorInterface $securityInterceptor)
Constructor.
RequestPatternInterface
getRequestPattern()
Returns the set request pattern
InterceptorInterface
getSecurityInterceptor()
Returns the set security interceptor
bool
filterRequest(ActionRequest $request)
Tries to match the given request against this filter and calls the set security interceptor on success.