From 2d5bcda9e7d3cb637634724b6b0743c848c82754 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Sun, 30 Jun 2019 19:00:07 +0200 Subject: [PATCH] [FrameworkBundle] Add autowiring alias for PSR-14 --- .../DependencyInjection/FrameworkExtension.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php index a31bb95fb8de4..aa280e851267e 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php @@ -16,6 +16,7 @@ use Http\Client\HttpClient; use Psr\Cache\CacheItemPoolInterface; use Psr\Container\ContainerInterface as PsrContainerInterface; +use Psr\EventDispatcher\EventDispatcherInterface as PsrEventDispatcherInterface; use Psr\Http\Client\ClientInterface; use Psr\Log\LoggerAwareInterface; use Symfony\Bridge\Monolog\Processor\DebugProcessor; @@ -154,6 +155,10 @@ public function load(array $configs, ContainerBuilder $container) $loader->load('fragment_renderer.xml'); $loader->load('error_catcher.xml'); + if (interface_exists(PsrEventDispatcherInterface::class)) { + $container->setAlias(PsrEventDispatcherInterface::class, 'event_dispatcher'); + } + $container->registerAliasForArgument('parameter_bag', PsrContainerInterface::class); if (class_exists(Application::class)) { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy