class DomainRepository extends Repository (View source)

The Site Repository

Properties

protected DomainMatchingStrategy $domainMatchingStrategy
protected Bootstrap $bootstrap
protected array $defaultOrderings

Methods

array
findByHost(string $hostname, bool $onlyActive = false)

Finds all active domains matching the given hostname.

findOneByHost(string $hostname, bool $onlyActive = false)

Find the best matching active domain for the given hostname.

findOneByActiveRequest()

No description

Details

array findByHost(string $hostname, bool $onlyActive = false)

Finds all active domains matching the given hostname.

Their order is determined by how well they match, best match first.

Parameters

string $hostname

Hostname the domain should match with (eg. "localhost" or "www.neos.io")

bool $onlyActive

Only include active domains

Return Value

array

An array of matching domains

Domain findOneByHost(string $hostname, bool $onlyActive = false)

Find the best matching active domain for the given hostname.

Parameters

string $hostname

Hostname the domain should match with (eg. "localhost" or "www.neos.io")

bool $onlyActive

Only include active domains

Return Value

Domain

Domain findOneByActiveRequest()

No description

Return Value

Domain