From 9819c00c2eea750b99902f244309b824911b72b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Ostroluck=C3=BD?= Date: Thu, 23 Mar 2023 21:02:57 +0100 Subject: [PATCH] Remove DBAL Connection alias that is broken since DBAL 3.x Fixes #1637 --- Resources/config/dbal.xml | 1 - Tests/DependencyInjection/DoctrineExtensionTest.php | 2 -- 2 files changed, 3 deletions(-) diff --git a/Resources/config/dbal.xml b/Resources/config/dbal.xml index a93d2d275..1c869b95b 100644 --- a/Resources/config/dbal.xml +++ b/Resources/config/dbal.xml @@ -17,7 +17,6 @@ - diff --git a/Tests/DependencyInjection/DoctrineExtensionTest.php b/Tests/DependencyInjection/DoctrineExtensionTest.php index e0316e79e..47541b4af 100644 --- a/Tests/DependencyInjection/DoctrineExtensionTest.php +++ b/Tests/DependencyInjection/DoctrineExtensionTest.php @@ -17,7 +17,6 @@ use Doctrine\Common\Cache\MemcacheCache; use Doctrine\Common\Cache\XcacheCache; use Doctrine\DBAL\Connection; -use Doctrine\DBAL\Driver\Connection as DriverConnection; use Doctrine\ORM\Cache\CacheConfiguration; use Doctrine\ORM\Cache\DefaultCacheFactory; use Doctrine\ORM\Cache\Logging\CacheLoggerChain; @@ -82,7 +81,6 @@ public function testAutowiringAlias(): void $extension->load([$config], $container); $expectedAliases = [ - DriverConnection::class => 'database_connection', Connection::class => 'database_connection', EntityManagerInterface::class => 'doctrine.orm.entity_manager', ];