PHP Class Neos\Neos\Domain\Repository\DomainRepository

Inheritance: extends Neos\Flow\Persistence\Repository
Afficher le fichier Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$bootstrap Neos\Flow\Core\Bootstrap
$defaultOrderings array
$domainMatchingStrategy Neos\Neos\Domain\Service\DomainMatchingStrategy

Méthodes publiques

Méthode 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 méthode

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
Résultat array An array of matching domains

findOneByActiveRequest() public méthode

public findOneByActiveRequest ( ) : Domain
Résultat Neos\Neos\Domain\Model\Domain

findOneByHost() public méthode

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
Résultat Neos\Neos\Domain\Model\Domain

Property Details

$bootstrap protected_oe property

protected Bootstrap,Neos\Flow\Core $bootstrap
Résultat Neos\Flow\Core\Bootstrap

$defaultOrderings protected_oe property

protected array $defaultOrderings
Résultat array

$domainMatchingStrategy protected_oe property

protected DomainMatchingStrategy,Neos\Neos\Domain\Service $domainMatchingStrategy
Résultat Neos\Neos\Domain\Service\DomainMatchingStrategy