Skip to content

Commit

Permalink
Remove DBAL Connection alias that is broken since DBAL 3.x
Browse files Browse the repository at this point in the history
Fixes #1637
  • Loading branch information
ostrolucky committed Mar 23, 2023
1 parent 6b1b540 commit 9819c00
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion Resources/config/dbal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
</parameters>

<services>
<service id="Doctrine\DBAL\Driver\Connection" alias="database_connection" public="false" />
<service id="Doctrine\DBAL\Connection" alias="database_connection" public="false" />

<service id="data_collector.doctrine" class="%doctrine.data_collector.class%" public="false">
Expand Down
2 changes: 0 additions & 2 deletions Tests/DependencyInjection/DoctrineExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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',
];
Expand Down

0 comments on commit 9819c00

Please sign in to comment.