|
6 | 6 |
|
7 | 7 | use Doctrine\Bundle\MongoDBBundle\Attribute\AsDocumentListener;
|
8 | 8 | use Doctrine\Bundle\MongoDBBundle\Attribute\MapDocument;
|
9 |
| -use Doctrine\Bundle\MongoDBBundle\CacheWarmer\HydratorCacheWarmer; |
10 |
| -use Doctrine\Bundle\MongoDBBundle\CacheWarmer\PersistentCollectionCacheWarmer; |
11 |
| -use Doctrine\Bundle\MongoDBBundle\CacheWarmer\ProxyCacheWarmer; |
12 | 9 | use Doctrine\Bundle\MongoDBBundle\DependencyInjection\Compiler\FixturesCompilerPass;
|
13 | 10 | use Doctrine\Bundle\MongoDBBundle\DependencyInjection\Compiler\ServiceRepositoryCompilerPass;
|
14 | 11 | use Doctrine\Bundle\MongoDBBundle\EventSubscriber\EventSubscriberInterface;
|
15 | 12 | use Doctrine\Bundle\MongoDBBundle\Fixture\ODMFixtureInterface;
|
16 |
| -use Doctrine\Bundle\MongoDBBundle\ManagerConfigurator; |
17 |
| -use Doctrine\Bundle\MongoDBBundle\ManagerRegistry; |
18 | 13 | use Doctrine\Bundle\MongoDBBundle\Repository\ServiceDocumentRepositoryInterface;
|
19 | 14 | use Doctrine\Common\Cache\MemcacheCache;
|
20 | 15 | use Doctrine\Common\Cache\RedisCache;
|
21 | 16 | use Doctrine\Common\DataFixtures\Loader as DataFixturesLoader;
|
22 | 17 | use Doctrine\Common\EventSubscriber;
|
23 |
| -use Doctrine\ODM\MongoDB\Configuration as MongoDBConfiguration; |
24 | 18 | use Doctrine\ODM\MongoDB\DocumentManager;
|
25 | 19 | use InvalidArgumentException;
|
26 | 20 | use Jean85\PrettyVersions;
|
27 |
| -use MongoDB\Client; |
28 | 21 | use Symfony\Bridge\Doctrine\ArgumentResolver\EntityValueResolver;
|
29 |
| -use Symfony\Bridge\Doctrine\ContainerAwareEventManager; |
30 | 22 | use Symfony\Bridge\Doctrine\DependencyInjection\AbstractDoctrineExtension;
|
31 | 23 | use Symfony\Bridge\Doctrine\Messenger\DoctrineClearEntityManagerWorkerSubscriber;
|
32 |
| -use Symfony\Bridge\Doctrine\Security\User\EntityUserProvider; |
33 |
| -use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntityValidator; |
34 |
| -use Symfony\Bridge\Doctrine\Validator\DoctrineInitializer; |
35 | 24 | use Symfony\Component\Cache\Adapter\ApcuAdapter;
|
36 | 25 | use Symfony\Component\Cache\Adapter\ArrayAdapter;
|
37 | 26 | use Symfony\Component\Cache\Adapter\MemcachedAdapter;
|
|
55 | 44 | use function in_array;
|
56 | 45 | use function interface_exists;
|
57 | 46 | use function is_dir;
|
58 |
| -use function method_exists; |
59 | 47 | use function reset;
|
60 | 48 | use function sprintf;
|
61 | 49 |
|
@@ -159,8 +147,6 @@ public function load(array $configs, ContainerBuilder $container)
|
159 | 147 | $this->loadMessengerServices($container);
|
160 | 148 |
|
161 | 149 | $this->loadEntityValueResolverServices($container, $loader, $config);
|
162 |
| - |
163 |
| - $this->deprecateClassParameters($container); |
164 | 150 | }
|
165 | 151 |
|
166 | 152 | /**
|
@@ -675,35 +661,4 @@ private static function getODMVersion(): string
|
675 | 661 |
|
676 | 662 | return self::$odmVersion;
|
677 | 663 | }
|
678 |
| - |
679 |
| - private function deprecateClassParameters(ContainerBuilder $container): void |
680 |
| - { |
681 |
| - if (! method_exists($container, 'deprecateParameter')) { |
682 |
| - return; |
683 |
| - } |
684 |
| - |
685 |
| - foreach ( |
686 |
| - [ |
687 |
| - 'doctrine_mongodb.odm.connection.class' => Client::class, |
688 |
| - 'doctrine_mongodb.odm.configuration.class' => MongoDBConfiguration::class, |
689 |
| - 'doctrine_mongodb.odm.document_manager.class' => DocumentManager::class, |
690 |
| - 'doctrine_mongodb.odm.manager_configurator.class' => ManagerConfigurator::class, |
691 |
| - 'doctrine_mongodb.odm.event_manager.class' => ContainerAwareEventManager::class, |
692 |
| - 'doctrine_odm.mongodb.validator_initializer.class' => DoctrineInitializer::class, |
693 |
| - 'doctrine_odm.mongodb.validator.unique.class' => UniqueEntityValidator::class, |
694 |
| - 'doctrine_mongodb.odm.class' => ManagerRegistry::class, |
695 |
| - 'doctrine_mongodb.odm.security.user.provider.class' => EntityUserProvider::class, |
696 |
| - 'doctrine_mongodb.odm.proxy_cache_warmer.class' => ProxyCacheWarmer::class, |
697 |
| - 'doctrine_mongodb.odm.hydrator_cache_warmer.class' => HydratorCacheWarmer::class, |
698 |
| - 'doctrine_mongodb.odm.persistent_collection_cache_warmer.class' => PersistentCollectionCacheWarmer::class, |
699 |
| - ] as $parameter => $class |
700 |
| - ) { |
701 |
| - $container->deprecateParameter( |
702 |
| - $parameter, |
703 |
| - 'doctrine/mongodb-odm-bundle', |
704 |
| - '4.7', |
705 |
| - '"%s" parameter is deprecated, you should use a compiler pass to update the service instead.', |
706 |
| - ); |
707 |
| - } |
708 |
| - } |
709 | 664 | }
|
0 commit comments