code711/siteconfigurationevents

This TYPO3 extension will provide PSR-14 events for the SiteConfiguration Class methods write, rename and delete

1.1.0 2023-04-07 20:34 UTC

This package is auto-updated.

Last update: 2024-05-07 23:07:39 UTC


README

Latest Stable Version TYPO3 12 Total Downloads Monthly Downloads

This extension will provide PSR-14 events for the SiteConfiguration 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\SiteConfiguration
and 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