PHP Class Neos\Neos\Domain\Service\SiteService

Show file Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Property Type Description
$domainRepository Neos\Neos\Domain\Repository\DomainRepository
$nodeDataRepository Neos\ContentRepository\Domain\Repository\NodeDataRepository
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
$siteRepository Neos\Neos\Domain\Repository\SiteRepository
$workspaceRepository Neos\ContentRepository\Domain\Repository\WorkspaceRepository

Public Methods

Method Description
pruneAll ( ) : void Remove all sites and their respective nodes and domains
pruneSite ( Site $site ) : void Remove given site all nodes for that site and all domains associated.

Protected Methods

Method Description
emitSitePruned ( Site $site ) : void Signal that is triggered whenever a site has been pruned

Method Details

emitSitePruned() protected method

Signal that is triggered whenever a site has been pruned
protected emitSitePruned ( Site $site ) : void
$site Neos\Neos\Domain\Model\Site The site that was pruned
return void

pruneAll() public method

Remove all sites and their respective nodes and domains
public pruneAll ( ) : void
return void

pruneSite() public method

Remove given site all nodes for that site and all domains associated.
public pruneSite ( Site $site ) : void
$site Neos\Neos\Domain\Model\Site
return void

Property Details

$domainRepository protected property

protected DomainRepository,Neos\Neos\Domain\Repository $domainRepository
return Neos\Neos\Domain\Repository\DomainRepository

$nodeDataRepository protected property

protected NodeDataRepository,Neos\ContentRepository\Domain\Repository $nodeDataRepository
return Neos\ContentRepository\Domain\Repository\NodeDataRepository

$persistenceManager protected property

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
return Neos\Flow\Persistence\PersistenceManagerInterface

$siteRepository protected property

protected SiteRepository,Neos\Neos\Domain\Repository $siteRepository
return Neos\Neos\Domain\Repository\SiteRepository

$workspaceRepository protected property

protected WorkspaceRepository,Neos\ContentRepository\Domain\Repository $workspaceRepository
return Neos\ContentRepository\Domain\Repository\WorkspaceRepository