SiteCommandController
class SiteCommandController extends CommandController (View source)
The Site Command Controller
Properties
protected SiteRepository | $siteRepository | ||
protected SiteService | $siteService | ||
protected PackageManager | $packageManager | ||
protected PersistenceManagerInterface | $persistenceManager |
Methods
Create a new site
Remove site with content and related data (with globbing)
List available sites
Activate a site (with globbing)
Deactivate a site (with globbing)
Find all sites the match the given site-node-name-pattern with support for globbing
Details
void
createCommand(string $name, string $packageKey, string $nodeType, string $nodeName = null, bool $inactive = false)
Create a new site
This command allows to create a blank site with just a single empty document in the default dimension. The name of the site, the packageKey must be specified.
The node type given with the nodeType
option must already exists
and have the superType Neos.Neos:Document
.
If no nodeName
option is specified the command will create a unique node-name from the name of the site.
If a node name is given it has to be unique for the setup.
If the flag activate
is set to false new site will not be activated.
void
pruneCommand(string $siteNode)
Remove site with content and related data (with globbing)
In the future we need some more sophisticated cleanup.
void
listCommand()
List available sites
void
activateCommand(string $siteNode)
Activate a site (with globbing)
This command activates the specified site.
void
deactivateCommand(string $siteNode)
Deactivate a site (with globbing)
This command deactivates the specified site.
protected Site[]
findSitesByNodeNamePattern(string $siteNodePattern)
Find all sites the match the given site-node-name-pattern with support for globbing