SiteSettingsFactory
Read onlyYes
Attributes
- #[Autoconfigure]
- $public: true
Table of Contents
Properties
- $cache : PhpFrontend
- $cacheIdentifier : PackageDependentCacheIdentifier
- $configPath : string
- $setRegistry : SetRegistry
- $settingsFileName : string
- $settingsTypeRegistry : SettingsTypeRegistry
- $yamlFileLoader : YamlFileLoader
Methods
- __construct() : mixed
- composeSettings() : SiteSettings
- createSettings() : SiteSettings
- Fetch the settings for a specific site and return the parsed Site Settings object.
- createSettingsForKeys() : SiteSettings
- getSettings() : SiteSettings
- validateSettings() : array<string|int, mixed>
Properties
$cache
protected
PhpFrontend
$cache
Attributes
- #[Autowire]
- $service: 'cache.core'
$cacheIdentifier
protected
PackageDependentCacheIdentifier
$cacheIdentifier
Attributes
- #[Autowire]
- $expression: 'service("package-dependent-cache-identifier").withPrefix("SiteSettings")'
$configPath
protected
string
$configPath
Attributes
- #[Autowire]
- '%env(TYPO3:configPath)%/sites'
$setRegistry
protected
SetRegistry
$setRegistry
$settingsFileName
protected
string
$settingsFileName
= 'settings.yaml'
$settingsTypeRegistry
protected
SettingsTypeRegistry
$settingsTypeRegistry
$yamlFileLoader
protected
YamlFileLoader
$yamlFileLoader
Methods
__construct()
public
__construct(string $configPath, SetRegistry $setRegistry, SettingsTypeRegistry $settingsTypeRegistry, YamlFileLoader $yamlFileLoader, PhpFrontend $cache, PackageDependentCacheIdentifier $cacheIdentifier[, string $settingsFileName = 'settings.yaml' ]) : mixed
Parameters
- $configPath : string
- $setRegistry : SetRegistry
- $settingsTypeRegistry : SettingsTypeRegistry
- $yamlFileLoader : YamlFileLoader
- $cache : PhpFrontend
- $cacheIdentifier : PackageDependentCacheIdentifier
- $settingsFileName : string = 'settings.yaml'
composeSettings()
public
composeSettings(array<string|int, mixed> $settingsTree, array<string|int, mixed> $sets) : SiteSettings
Parameters
- $settingsTree : array<string|int, mixed>
- $sets : array<string|int, mixed>
Return values
SiteSettingscreateSettings()
Fetch the settings for a specific site and return the parsed Site Settings object.
public
createSettings([array<string|int, mixed> $sets = [] ][, string|null $siteIdentifier = null ][, array<string|int, mixed> $inlineSettings = [] ]) : SiteSettings
Parameters
- $sets : array<string|int, mixed> = []
- $siteIdentifier : string|null = null
- $inlineSettings : array<string|int, mixed> = []
Tags
Return values
SiteSettingscreateSettingsForKeys()
public
createSettingsForKeys(array<string|int, mixed> $settingKeys, string $siteIdentifier[, array<string|int, mixed> $inlineSettings = [] ]) : SiteSettings
Parameters
- $settingKeys : array<string|int, mixed>
- $siteIdentifier : string
- $inlineSettings : array<string|int, mixed> = []
Return values
SiteSettingsgetSettings()
public
getSettings(string $siteIdentifier, array<string|int, mixed> $siteConfiguration) : SiteSettings
Parameters
- $siteIdentifier : string
- $siteConfiguration : array<string|int, mixed>
Return values
SiteSettingsvalidateSettings()
protected
validateSettings(array<string|int, mixed> $settings, array<string|int, mixed> $definitions) : array<string|int, mixed>
Parameters
- $settings : array<string|int, mixed>
- $definitions : array<string|int, mixed>