Service
class Service (View source)
Properties
protected EntityManagerInterface | $entityManager | ||
protected Application | $app | ||
protected Repository | $config | ||
protected ResolverFactory | $resolverFactory | ||
protected Cache | $cache | ||
protected Service | $siteTypeService |
Methods
No description
No description
No description
No description
No description
No description
Returns a list of sites. If $sort = 'name' then the sites will be sorted by site name. If sort is false it will not be sorted. Only name is supported for now.
No description
Resolve the active site
This method MUST be treated as final
by extending drivers, but MAY be replaced by a complete override.
Resolve the active site for editing
This method MUST be treated as final
by extending drivers, but MAY be replaced by a complete override.
No description
Details
setEntityManager(EntityManagerInterface $entityManager)
No description
__construct(EntityManagerInterface $entityManager, Application $app, Repository $configRepository, ResolverFactory $resolverFactory, Service $siteTypeService)
No description
setCache(mixed $cache)
No description
Site|null
getByHandle(string $handle)
No description
Site|null
getDefault()
No description
Site
add(Type $type, Theme $theme, string $handle, string $name, string $locale, bool $default = false)
No description
getController(Site $site)
No description
Tree|null
getSiteTreeByID(int $siteTreeID)
No description
Site|null
getByID(int $id)
No description
delete(Site $site)
No description
Site[]
getList(string $sort = 'name')
Returns a list of sites. If $sort = 'name' then the sites will be sorted by site name. If sort is false it will not be sorted. Only name is supported for now.
Site
installDefault(string|null $locale = null)
No description
Site|null
getSite()
Resolve the active site
This method MUST be treated as final
by extending drivers, but MAY be replaced by a complete override.
Site|null
getActiveSiteForEditing()
Resolve the active site for editing
This method MUST be treated as final
by extending drivers, but MAY be replaced by a complete override.
getSiteDomains(Site $site)
No description
getSiteByDomain($domain)
No description