PHP Class Neos\Flow\Security\Authorization\RequestFilter

显示文件 Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$pattern Neos\Flow\Security\RequestPatternInterface
$securityInterceptor Neos\Flow\Security\Authorization\InterceptorInterface

Public Methods

Method Description
__construct ( Neos\Flow\Security\RequestPatternInterface $pattern, Neos\Flow\Security\Authorization\InterceptorInterface $securityInterceptor ) Constructor.
filterRequest ( Neos\Flow\Mvc\RequestInterface $request ) : boolean Tries to match the given request against this filter and calls the set security interceptor on success.
getRequestPattern ( ) : Neos\Flow\Security\RequestPatternInterface Returns the set request pattern
getSecurityInterceptor ( ) : Neos\Flow\Security\Authorization\InterceptorInterface Returns the set security interceptor

Method Details

__construct() public method

Constructor.
public __construct ( Neos\Flow\Security\RequestPatternInterface $pattern, Neos\Flow\Security\Authorization\InterceptorInterface $securityInterceptor )
$pattern Neos\Flow\Security\RequestPatternInterface The pattern this filter matches
$securityInterceptor Neos\Flow\Security\Authorization\InterceptorInterface The interceptor called on pattern match

filterRequest() public method

Tries to match the given request against this filter and calls the set security interceptor on success.
public filterRequest ( Neos\Flow\Mvc\RequestInterface $request ) : boolean
$request Neos\Flow\Mvc\RequestInterface The request to be matched
return boolean Returns TRUE if the filter matched, FALSE otherwise

getRequestPattern() public method

Returns the set request pattern
public getRequestPattern ( ) : Neos\Flow\Security\RequestPatternInterface
return Neos\Flow\Security\RequestPatternInterface The set request pattern

getSecurityInterceptor() public method

Returns the set security interceptor
public getSecurityInterceptor ( ) : Neos\Flow\Security\Authorization\InterceptorInterface
return Neos\Flow\Security\Authorization\InterceptorInterface The set security interceptor

Property Details

$pattern protected_oe property

protected RequestPatternInterface,Neos\Flow\Security $pattern
return Neos\Flow\Security\RequestPatternInterface

$securityInterceptor protected_oe property

protected InterceptorInterface,Neos\Flow\Security\Authorization $securityInterceptor
return Neos\Flow\Security\Authorization\InterceptorInterface