class DomainCommandController extends CommandController (View source)

Domain command controller for the Neos.Neos package

Properties

protected DomainRepository $domainRepository
protected SiteRepository $siteRepository
protected ValidatorResolver $validatorResolver

Methods

void
addCommand(string $siteNodeName, string $hostname, string $scheme = null, int $port = null)

Add a domain record

void
listCommand(string $hostname = null)

Display a list of available domain records

void
deleteCommand(string $hostname)

Delete a domain record by hostname (with globbing)

void
activateCommand(string $hostname)

Activate a domain record by hostname (with globbing)

void
deactivateCommand(string $hostname)

Deactivate a domain record by hostname (with globbing)

Domain[]
findDomainsByHostnamePattern(string $hostnamePattern)

Find domains that match the given hostname with globbing support

Details

void addCommand(string $siteNodeName, string $hostname, string $scheme = null, int $port = null)

Add a domain record

Parameters

string $siteNodeName

The nodeName of the site rootNode, e.g. "flowneosio"

string $hostname

The hostname to match on, e.g. "flow.neos.io"

string $scheme

The scheme for linking (http/https)

int $port

The port for linking (0-49151)

Return Value

void

void listCommand(string $hostname = null)

Display a list of available domain records

Parameters

string $hostname

An optional hostname to search for

Return Value

void

void deleteCommand(string $hostname)

Delete a domain record by hostname (with globbing)

Parameters

string $hostname

The hostname to remove (globbing is supported)

Return Value

void

void activateCommand(string $hostname)

Activate a domain record by hostname (with globbing)

Parameters

string $hostname

The hostname to activate (globbing is supported)

Return Value

void

void deactivateCommand(string $hostname)

Deactivate a domain record by hostname (with globbing)

Parameters

string $hostname

The hostname to deactivate (globbing is supported)

Return Value

void

protected Domain[] findDomainsByHostnamePattern(string $hostnamePattern)

Find domains that match the given hostname with globbing support

Parameters

string $hostnamePattern

pattern for the hostname of the domains

Return Value

Domain[]