Feature: #89102 - Read settings for sites from <config>/sites/<siteIdentifier>/settings.yaml

See Issue #89102

Description

The concept of site settings allows the usage of site specific variables independent of the current context (for example: allows the usage of a “storagePid” in CLI and TypoScript context).

Impact

To configure settings, a YAML file called settings.yaml can be stored in the site configuration folder with plain yaml arrays of configuration. The site settings are loaded as property of the site object and can be accessed wherever the site is available. Additionally, they are loaded as constants in TypoScript context - and can be used as such.

Example settings.yaml:

MyVendor:
   MyExtension:
      storagePid: 1
      limit: 15

Usage in TypoScript as constant:

`plugin.tx_myext.storagePid = {$MyVendor.MyExtension.storagePid}`

Usage in PHP via Site object:

$settings = $site->getSettings();
$storagePid = $settings['MyVendor']['MyExtension']['storagePid'];

Please use namespaces (vendor/ext name) for your settings to avoid conflicts.