code711 / siteconfigurationevents
This TYPO3 extension will provide PSR-14 events for the SiteConfiguration Class methods write, rename and delete
Installs: 4 088
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:typo3-cms-extension
Requires
- php: 8.3.*||8.2.*||8.1.*
- typo3/cms-core: ^13.0
Requires (Dev)
- saschaegerer/phpstan-typo3: *
- typo3/cms-backend: ^13.0
- typo3/cms-frontend: ^13.0
- typo3/cms-install: ^13.0
- typo3/cms-lowlevel: ^13.0
- typo3/cms-tstemplate: ^13.0
- typo3/coding-standards: *
README
This extension will provide PSR-14 events for the SiteWriter Class methods write, rename and delete. This way 3rd party extensions can attach to these events when a site configuration has been created or updated
Installation
composer req code711/siteconfigurationevents
Usage
This extension will XCLASS
\TYPO3\CMS\Core\Configuration\SiteWriterand add 1 event to the write method and each 1 event to the rename and delete methods, before calling the respective parent methods. No further changes are done to the Core class/
The following PSR-14 events will then be available.
AfterSiteConfigurationWriteEvent
Receives the immutable (string)$siteIdentifier, the immutable $configuration array which has been written to the yaml file, and the immutable $protectPlaceholders boolean
AfterSiteConfigurationRenameEvent
Receives (string)$currentIdentifier and the (string)$newIdentifier
AfterSiteConfigurationDeleteEvent
Receives the removed (string)$siteIdentifier