Neos.Neos/Classes/Command/DomainCommandController.php
protected function findDomainsByHostnamePattern($hostnamePattern)
    {
        return array_filter(
            $this->domainRepository->findAll()->toArray(),
            function ($domain) use ($hostnamePattern) {
                return fnmatch($hostnamePattern, $domain->getHostname());
            }
        );
    }
protected function findDomainsByHostnamePattern($hostnamePattern)
    {
        return array_filter(
            $this->domainRepository->findAll()->toArray(),
            function ($domain) use ($hostnamePattern) {
                return fnmatch($hostnamePattern, $domain->getHostname());
            }
        );
    }
protected function findDomainsByHostnamePattern ( $ hostnamePattern ) { return array_filter ( $ this -> domainRepository -> findAll ( ) -> toArray ( ) , function ( $ domain ) use ( $ hostnamePattern ) { return fnmatch ( $ hostnamePattern , $ domain -> getHostname ( ) ) ; } ) ; }
Find domains that match the given hostname with globbing support

@param string $hostnamePattern pattern for the hostname of the domains
@return array<Domain>
Find domains that match the given hostname with globbing support