PHP Class Neos\Neos\Domain\Repository\DomainRepository

Inheritance: extends Neos\Flow\Persistence\Repository
Show file Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Property Type Description
$bootstrap Neos\Flow\Core\Bootstrap
$defaultOrderings array
$domainMatchingStrategy Neos\Neos\Domain\Service\DomainMatchingStrategy

Public Methods

Method Description
findByHost ( string $hostname, boolean $onlyActive = false ) : array Finds all active domains matching the given hostname.
findOneByActiveRequest ( ) : Domain
findOneByHost ( string $hostname, boolean $onlyActive = false ) : Domain Find the best matching active domain for the given hostname.

Method Details

findByHost() public method

Their order is determined by how well they match, best match first.
public findByHost ( string $hostname, boolean $onlyActive = false ) : array
$hostname string Hostname the domain should match with (eg. "localhost" or "www.neos.io")
$onlyActive boolean Only include active domains
return array An array of matching domains

findOneByActiveRequest() public method

public findOneByActiveRequest ( ) : Domain
return Neos\Neos\Domain\Model\Domain

findOneByHost() public method

Find the best matching active domain for the given hostname.
public findOneByHost ( string $hostname, boolean $onlyActive = false ) : Domain
$hostname string Hostname the domain should match with (eg. "localhost" or "www.neos.io")
$onlyActive boolean Only include active domains
return Neos\Neos\Domain\Model\Domain

Property Details

$bootstrap protected property

protected Bootstrap,Neos\Flow\Core $bootstrap
return Neos\Flow\Core\Bootstrap

$defaultOrderings protected property

protected array $defaultOrderings
return array

$domainMatchingStrategy protected property

protected DomainMatchingStrategy,Neos\Neos\Domain\Service $domainMatchingStrategy
return Neos\Neos\Domain\Service\DomainMatchingStrategy