Commit fe206776 authored by Benjamin Franzke's avatar Benjamin Franzke
Browse files

[BUGFIX] Explicitly define ContainerInterface service alias

Account for the symfony deprecation in
https://github.com/symfony/symfony/pull/35879
which deprecated the default alias for Psr\Container\ContainerInterface
and flooded our deprecaton logs since #94269.

This deprecation is intended to help with symfony service locators
(which we do not use), but would break our usecases once we update to
symfony v6 as TYPO3 core and extensions rely on service_container
autowiring for the PSR ContainerInterface alias.

Releases: master
Resolves: #94453
Related: #94269
Change-Id: I0599b3a8a5640faf2fac5094175ae2a6fb37a0a3
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/69678

Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Benjamin Franzke's avatarBenjamin Franzke <bfr@qbus.de>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Benjamin Franzke's avatarBenjamin Franzke <bfr@qbus.de>
parent dac021bc
......@@ -218,6 +218,9 @@ services:
arguments: ['l10n']
# Interface implementations
Psr\Container\ContainerInterface:
alias: service_container
public: true
Psr\EventDispatcher\EventDispatcherInterface:
alias: TYPO3\CMS\Core\EventDispatcher\EventDispatcher
public: true
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment