[FEATURE] Introduce Site Settings Read API
When using site configuration with settings, they previously were accessible via $site->getConfiguration()['settings']. A site now also contains the settings in a better way to read them via $site->getSettings() where a SiteSettings object is resolved, which contains all defined settings. Settings can be defined in a settings.yaml within the site configuration folder, which are then read and populated along with the site configuration. The new SiteSettings Read API allows to access the settings via a flat array or a full array. Resolves: #99048 Releases: main Change-Id: I07f1244d0ed45fe09d0f39dfdd52e8523a05b730 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76520 Tested-by:core-ci <typo3@b13.com> Tested-by:
Susanne Moog <look@susi.dev> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Susanne Moog <look@susi.dev> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by:
Benni Mack <benni@typo3.org>
Showing
- typo3/sysext/core/Classes/Configuration/Parser/PageTsConfigParser.php 3 additions, 6 deletions.../core/Classes/Configuration/Parser/PageTsConfigParser.php
- typo3/sysext/core/Classes/Configuration/SiteConfiguration.php 13 additions, 6 deletions...3/sysext/core/Classes/Configuration/SiteConfiguration.php
- typo3/sysext/core/Classes/Site/Entity/Site.php 15 additions, 6 deletionstypo3/sysext/core/Classes/Site/Entity/Site.php
- typo3/sysext/core/Classes/Site/Entity/SiteSettings.php 65 additions, 0 deletionstypo3/sysext/core/Classes/Site/Entity/SiteSettings.php
- typo3/sysext/core/Classes/TypoScript/IncludeTree/TreeBuilder.php 3 additions, 4 deletions...ysext/core/Classes/TypoScript/IncludeTree/TreeBuilder.php
- typo3/sysext/core/Classes/TypoScript/TemplateService.php 3 additions, 3 deletionstypo3/sysext/core/Classes/TypoScript/TemplateService.php
- typo3/sysext/core/Documentation/Changelog/12.1/Feature-99048-SiteSettingsReadAPI.rst 52 additions, 0 deletions...tion/Changelog/12.1/Feature-99048-SiteSettingsReadAPI.rst
- typo3/sysext/core/Tests/Unit/Configuration/Parser/PageTsConfigParserTest.php 23 additions, 16 deletions...ests/Unit/Configuration/Parser/PageTsConfigParserTest.php
- typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php 4 additions, 0 deletions.../frontend/Classes/ContentObject/ContentObjectRenderer.php
- typo3/sysext/redirects/Classes/Service/SlugService.php 5 additions, 5 deletionstypo3/sysext/redirects/Classes/Service/SlugService.php
Please register or sign in to comment