DomainMatchingStrategy
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.