code711/siteconfigurationevents

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

1.2.1 2024-08-06 21:35 UTC

This package is auto-updated.

Last update: 2024-11-06 22:24:22 UTC


README

Latest Stable Version TYPO3 13 Total Downloads Monthly Downloads

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\SiteWriter
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