Deprecation: #89870 - New PSR-14 Events for Extbase-related signals 

See forge#89870

Description 

The following signals have been marked as deprecated in favor of new PSR-14 events:

  • \TYPO3\CMS\Extbase\Mvc\Dispatcher::afterRequestDispatch
  • \TYPO3\CMS\Extbase\Mvc\Controller\ActionController::beforeCallActionMethod
  • \TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper::afterMappingSingleRow
  • \TYPO3\CMS\Extbase\Persistence\Generic\Backend::beforeGettingObjectData
  • \TYPO3\CMS\Extbase\Persistence\Generic\Backend::afterGettingObjectData
  • \TYPO3\CMS\Extbase\Persistence\Generic\Backend::endInsertObject
  • \TYPO3\CMS\Extbase\Persistence\Generic\Backend::afterUpdateObject
  • \TYPO3\CMS\Extbase\Persistence\Generic\Backend::afterPersistObject
  • \TYPO3\CMS\Extbase\Persistence\Generic\Backend::afterRemoveObject

The method emitBeforeCallActionMethodSignal in ActionController has been marked as deprecated and is not called by Extbase itself anymore.

Impact 

Using any of the signals will still work as expected, but will trigger a PHP E_USER_DEPRECATED error.

Calling the method emitBeforeCallActionMethodSignal will trigger a PHP E_USER_DEPRECATED error.

Affected Installations 

TYPO3 installations with extensions using the Extbase framework and Extbase-internal hooks.

Migration 

The following new PSR-14-based Events should be used instead:

  • \TYPO3\CMS\Extbase\Event\Mvc\AfterRequestDispatchedEvent
  • \TYPO3\CMS\Extbase\Event\Mvc\BeforeActionCallEvent
  • \TYPO3\CMS\Extbase\Event\Persistence\AfterObjectThawedEvent
  • \TYPO3\CMS\Extbase\Event\Persistence\ModifyQueryBeforeFetchingObjectDataEvent
  • \TYPO3\CMS\Extbase\Event\Persistence\ModifyResultAfterFetchingObjectDataEvent
  • \TYPO3\CMS\Extbase\Event\Persistence\EntityAddedToPersistenceEvent
  • \TYPO3\CMS\Extbase\Event\Persistence\EntityUpdatedInPersistenceEvent
  • \TYPO3\CMS\Extbase\Event\Persistence\EntityRemovedFromPersistenceEvent
  • \TYPO3\CMS\Extbase\Event\Persistence\EntityPersistedEvent