SiteImportService
class SiteImportService (View source)
The Site Import Service
Properties
protected PackageManager | $packageManager | ||
protected SiteRepository | $siteRepository | ||
protected ContextFactoryInterface | $contextFactory | ||
protected NodeImportService | $nodeImportService | ||
protected WorkspaceRepository | $workspaceRepository | ||
protected ReflectionService | $reflectionService | ||
protected ObjectManagerInterface | $objectManager | ||
protected PersistenceManagerInterface | $persistenceManager | ||
protected EventEmittingService | $eventEmittingService | ||
protected string | $resourcesPath | ||
protected string[] | $imageVariantClassNames | An array that contains all fully qualified class names that extend ImageVariant including ImageVariant itself |
|
protected string[] | $assetClassNames | An array that contains all fully qualified class names that implement AssetInterface |
|
protected string[] | $dateTimeClassNames | An array that contains all fully qualified class names that extend \DateTime including \DateTime itself |
Methods
No description
Checks for the presence of Sites.xml in the given package and imports it if found.
Imports one or multiple sites from the XML file at $pathAndFilename
Updates or creates a site with the given $siteNodeName
Details
void
initializeObject()
No description
Site
importFromPackage(string $packageKey)
Checks for the presence of Sites.xml in the given package and imports it if found.
Site
importFromFile(string $pathAndFilename)
Imports one or multiple sites from the XML file at $pathAndFilename
protected Site
getSiteByNodeName(string $siteNodeName)
Updates or creates a site with the given $siteNodeName
protected void
emitSiteImported(Site $site)
Signal that is triggered when a site has been imported successfully