PHP Class Neos\Flow\Security\RequestPattern\Uri

Inheritance: implements Neos\Flow\Security\RequestPatternInterface
显示文件 Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$options array

Public Methods

Method Description
__construct ( array $options ) Expects options in the form array('uriPattern' => '')
matchRequest ( Neos\Flow\Mvc\RequestInterface $request ) : boolean Matches a \Neos\Flow\Mvc\RequestInterface against its set URL pattern rules
setPattern ( string $uriPattern ) : void Sets an URI pattern (preg_match() syntax)

Method Details

__construct() public method

Expects options in the form array('uriPattern' => '')
public __construct ( array $options )
$options array

matchRequest() public method

Matches a \Neos\Flow\Mvc\RequestInterface against its set URL pattern rules
public matchRequest ( Neos\Flow\Mvc\RequestInterface $request ) : boolean
$request Neos\Flow\Mvc\RequestInterface The request that should be matched
return boolean TRUE if the pattern matched, FALSE otherwise

setPattern() public method

Note: the pattern is a full-on regular expression pattern. The only thing that is touched by the code: forward slashes are escaped before the pattern is used.
Deprecation: since 3.3 this is not used - use options instead (@see __construct())
public setPattern ( string $uriPattern ) : void
$uriPattern string The URI pattern
return void

Property Details

$options protected_oe property

protected array $options
return array