PHP Class Neos\Flow\Security\RequestPattern\Host

Example: *.neos.io will match "flow.neos.io" and "www.neos.io", but not "neos.io" www.mydomain.* will match all TLDs of www.mydomain, but not "blog.mydomain.net" or "mydomain.com"
Inheritance: implements Neos\Flow\Security\RequestPatternInterface
Mostrar archivo 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('hostPattern' => '')
matchRequest ( Neos\Flow\Mvc\RequestInterface $request ) : boolean Matches a \Neos\Flow\Mvc\RequestInterface against its set host pattern rules
setPattern ( string $hostPattern ) : void

Method Details

__construct() public method

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

matchRequest() public method

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

Deprecation: since 3.3 this is not used - use options instead (@see __construct())
public setPattern ( string $hostPattern ) : void
$hostPattern string The host pattern
return void

Property Details

$options protected_oe property

protected array $options
return array