PHP Class Neos\Neos\Domain\Service\SiteImportService

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

Protected Properties

Property Type Description
$assetClassNames array An array that contains all fully qualified class names that implement AssetInterface
$contextFactory Neos\ContentRepository\Domain\Service\ContextFactoryInterface
$dateTimeClassNames array An array that contains all fully qualified class names that extend \DateTime including \DateTime itself
$eventEmittingService Neos\Neos\EventLog\Domain\Service\EventEmittingService
$imageVariantClassNames array An array that contains all fully qualified class names that extend ImageVariant including ImageVariant itself
$nodeImportService Neos\ContentRepository\Domain\Service\ImportExport\NodeImportService
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$packageManager Neos\Flow\Package\PackageManagerInterface
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
$reflectionService Neos\Flow\Reflection\ReflectionService
$resourcesPath string
$siteRepository Neos\Neos\Domain\Repository\SiteRepository
$workspaceRepository Neos\ContentRepository\Domain\Repository\WorkspaceRepository

Public Methods

Method Description
importFromFile ( string $pathAndFilename ) : Site Imports one or multiple sites from the XML file at $pathAndFilename
importFromPackage ( string $packageKey ) : Site Checks for the presence of Sites.xml in the given package and imports it if found.
initializeObject ( ) : void

Protected Methods

Method Description
emitSiteImported ( Site $site ) : void Signal that is triggered when a site has been imported successfully
getSiteByNodeName ( string $siteNodeName ) : Site Updates or creates a site with the given $siteNodeName

Method Details

emitSiteImported() protected method

Signal that is triggered when a site has been imported successfully
protected emitSiteImported ( Site $site ) : void
$site Neos\Neos\Domain\Model\Site The site that has been imported
return void

getSiteByNodeName() protected method

Updates or creates a site with the given $siteNodeName
protected getSiteByNodeName ( string $siteNodeName ) : Site
$siteNodeName string
return Neos\Neos\Domain\Model\Site

importFromFile() public method

Imports one or multiple sites from the XML file at $pathAndFilename
public importFromFile ( string $pathAndFilename ) : Site
$pathAndFilename string
return Neos\Neos\Domain\Model\Site The imported site

importFromPackage() public method

Checks for the presence of Sites.xml in the given package and imports it if found.
public importFromPackage ( string $packageKey ) : Site
$packageKey string
return Neos\Neos\Domain\Model\Site the imported site

initializeObject() public method

public initializeObject ( ) : void
return void

Property Details

$assetClassNames protected property

An array that contains all fully qualified class names that implement AssetInterface
protected array $assetClassNames
return array

$contextFactory protected property

protected ContextFactoryInterface,Neos\ContentRepository\Domain\Service $contextFactory
return Neos\ContentRepository\Domain\Service\ContextFactoryInterface

$dateTimeClassNames protected property

An array that contains all fully qualified class names that extend \DateTime including \DateTime itself
protected array $dateTimeClassNames
return array

$eventEmittingService protected property

protected EventEmittingService,Neos\Neos\EventLog\Domain\Service $eventEmittingService
return Neos\Neos\EventLog\Domain\Service\EventEmittingService

$imageVariantClassNames protected property

An array that contains all fully qualified class names that extend ImageVariant including ImageVariant itself
protected array $imageVariantClassNames
return array

$nodeImportService protected property

protected NodeImportService,Neos\ContentRepository\Domain\Service\ImportExport $nodeImportService
return Neos\ContentRepository\Domain\Service\ImportExport\NodeImportService

$objectManager protected property

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
return Neos\Flow\ObjectManagement\ObjectManagerInterface

$packageManager protected property

protected PackageManagerInterface,Neos\Flow\Package $packageManager
return Neos\Flow\Package\PackageManagerInterface

$persistenceManager protected property

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

$reflectionService protected property

protected ReflectionService,Neos\Flow\Reflection $reflectionService
return Neos\Flow\Reflection\ReflectionService

$resourcesPath protected property

protected string $resourcesPath
return string

$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