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"
Mostra file
Open project: neos/flow-development-collection
Class Usage Examples
Protected Properties
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' => '')
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
Property Details
$options protected_oe property
protected array $options |
return |
array |
|