PHP Class Neos\Flow\Security\RequestPattern\ControllerObjectName

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('controllerObjectNamePattern' => '')
matchRequest ( Neos\Flow\Mvc\RequestInterface $request ) : boolean Matches a \Neos\Flow\Mvc\RequestInterface against its set controller object name pattern rules
setPattern ( string $controllerObjectNamePattern ) : void Sets an controller object name pattern (preg_match() syntax)

Method Details

__construct() public method

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

matchRequest() public method

Matches a \Neos\Flow\Mvc\RequestInterface against its set controller object name 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

Sets an controller object name pattern (preg_match() syntax)
Deprecation: since 3.3 this is not used - use options instead (@see __construct())
public setPattern ( string $controllerObjectNamePattern ) : void
$controllerObjectNamePattern string The preg_match() styled controller object name pattern
return void

Property Details

$options protected_oe property

protected array $options
return array