PHP Class Neos\Neos\Domain\Service\DomainMatchingStrategy

Show file Open project: neos/neos-development-collection Class Usage Examples

Public Methods

Method Description
getSortedMatches ( string $hostnameToMatch, array $domains ) : array Returns those of the given domains which match the specified hostname.

Method Details

getSortedMatches() public method

The domains are sorted by their match exactness. If none really matches an empty array is returned.
public getSortedMatches ( string $hostnameToMatch, array $domains ) : array
$hostnameToMatch string The hostname to match against (eg. "localhost" or "www.neos.io")
$domains array
return array The matching domains