SiteSettingsService
Read onlyYes
Table of Contents
Properties
- $codeCache : PhpFrontend
- $flashMessageService : FlashMessageService
- $setRegistry : SetRegistry
- $settingsTypeRegistry : SettingsTypeRegistry
- $siteSettingsFactory : SiteSettingsFactory
- $siteWriter : SiteWriter
Methods
- __construct() : mixed
- computeSettingsDiff() : array<string|int, mixed>
- getLocalSettings() : SiteSettings
- getSetSettings() : SiteSettings
- getUncachedSettings() : SiteSettings
- hasSettingsDefinitions() : bool
- writeSettings() : void
Properties
$codeCache
protected
PhpFrontend
$codeCache
Attributes
- #[Autowire]
- $service: 'cache.core'
$flashMessageService
protected
FlashMessageService
$flashMessageService
$setRegistry
protected
SetRegistry
$setRegistry
$settingsTypeRegistry
protected
SettingsTypeRegistry
$settingsTypeRegistry
$siteSettingsFactory
protected
SiteSettingsFactory
$siteSettingsFactory
$siteWriter
protected
SiteWriter
$siteWriter
Methods
__construct()
public
__construct(SiteWriter $siteWriter, PhpFrontend $codeCache, SetRegistry $setRegistry, SiteSettingsFactory $siteSettingsFactory, SettingsTypeRegistry $settingsTypeRegistry, FlashMessageService $flashMessageService) : mixed
Parameters
- $siteWriter : SiteWriter
- $codeCache : PhpFrontend
- $setRegistry : SetRegistry
- $siteSettingsFactory : SiteSettingsFactory
- $settingsTypeRegistry : SettingsTypeRegistry
- $flashMessageService : FlashMessageService
computeSettingsDiff()
public
computeSettingsDiff(Site $site, array<string|int, mixed> $rawSettings[, bool $minify = true ]) : array<string|int, mixed>
Parameters
- $site : Site
- $rawSettings : array<string|int, mixed>
- $minify : bool = true
Return values
array<string|int, mixed>getLocalSettings()
public
getLocalSettings(Site $site) : SiteSettings
Parameters
- $site : Site
Return values
SiteSettingsgetSetSettings()
public
getSetSettings(Site $site) : SiteSettings
Parameters
- $site : Site
Return values
SiteSettingsgetUncachedSettings()
public
getUncachedSettings(Site $site) : SiteSettings
Parameters
- $site : Site
Return values
SiteSettingshasSettingsDefinitions()
public
hasSettingsDefinitions(Site $site) : bool
Parameters
- $site : Site
Return values
boolwriteSettings()
public
writeSettings(Site $site, array<string|int, mixed> $settings) : void
Parameters
- $site : Site
- $settings : array<string|int, mixed>