class DomainMatchingStrategy (View source)

Strategy for matching domains

Constants

EXACTMATCH

NOMATCH

Methods

array
getSortedMatches(string $hostnameToMatch, array $domains)

Returns those of the given domains which match the specified hostname.

Details

array getSortedMatches(string $hostnameToMatch, array $domains)

Returns those of the given domains which match the specified hostname.

The domains are sorted by their match exactness. If none really matches an empty array is returned.

Parameters

string $hostnameToMatch

The hostname to match against (eg. "localhost" or "www.neos.io")

array $domains

The domains to check

Return Value

array

The matching domains