Skip to content

Commit

Permalink
Drop support for Doctrine cache adapter for metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Dec 19, 2023
1 parent 8edad3b commit fa5f7df
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 177 deletions.
100 changes: 0 additions & 100 deletions DependencyInjection/Compiler/CacheCompatibilityPass.php

This file was deleted.

2 changes: 0 additions & 2 deletions DoctrineMongoDBBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace Doctrine\Bundle\MongoDBBundle;

use Doctrine\Bundle\MongoDBBundle\DependencyInjection\Compiler\CacheCompatibilityPass;
use Doctrine\Bundle\MongoDBBundle\DependencyInjection\Compiler\CreateHydratorDirectoryPass;
use Doctrine\Bundle\MongoDBBundle\DependencyInjection\Compiler\CreateProxyDirectoryPass;
use Doctrine\Bundle\MongoDBBundle\DependencyInjection\Compiler\FixturesCompilerPass;
Expand Down Expand Up @@ -35,7 +34,6 @@ class DoctrineMongoDBBundle extends Bundle

public function build(ContainerBuilder $container): void
{
$container->addCompilerPass(new CacheCompatibilityPass());
$container->addCompilerPass(new RegisterEventListenersAndSubscribersPass('doctrine_mongodb.odm.connections', 'doctrine_mongodb.odm.%s_connection.event_manager', 'doctrine_mongodb.odm'), PassConfig::TYPE_BEFORE_OPTIMIZATION);
$container->addCompilerPass(new CreateProxyDirectoryPass(), PassConfig::TYPE_BEFORE_REMOVING);
$container->addCompilerPass(new CreateHydratorDirectoryPass(), PassConfig::TYPE_BEFORE_REMOVING);
Expand Down
75 changes: 0 additions & 75 deletions Tests/DependencyInjection/Compiler/CacheCompatibilityPassTest.php

This file was deleted.

1 change: 1 addition & 0 deletions UPGRADE-5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ UPGRADE FROM 4.x to 5.0
* Remove automatic injection of the container in fixtures classes implementing
`ContainerAwareInterface`. You should use dependency injection instead.
* Remove the `fixture_loader` configuration
* Metadata cache use a PSR-6 cache pool. Support for Doctrine Cache is dropped.

0 comments on commit fa5f7df

Please sign in to comment.