Skip to content

Commit

Permalink
Remove compatibility code with Symfony < 6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Dec 13, 2023
1 parent a53c5ed commit 628b820
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions DependencyInjection/Compiler/DoctrineMongoDBMappingsPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
* Class for Symfony bundles to configure mappings for model classes not in the
* automapped folder.
*
* NOTE: alias is only supported by Symfony 2.6+ and will be ignored with older versions.
*
* @internal since version 4.7.0
*/
final class DoctrineMongoDBMappingsPass extends RegisterMappingsPass
Expand Down
6 changes: 0 additions & 6 deletions DependencyInjection/DoctrineMongoDBExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
use Doctrine\Common\EventSubscriber;
use Doctrine\ODM\MongoDB\DocumentManager;
use InvalidArgumentException;
use Symfony\Bridge\Doctrine\ArgumentResolver\EntityValueResolver;
use Symfony\Bridge\Doctrine\DependencyInjection\AbstractDoctrineExtension;
use Symfony\Bridge\Doctrine\Messenger\DoctrineClearEntityManagerWorkerSubscriber;
use Symfony\Component\Cache\Adapter\ApcuAdapter;
Expand Down Expand Up @@ -400,11 +399,6 @@ private function loadMessengerServices(ContainerBuilder $container): void
/** @param array<string, mixed> $config */
private function loadEntityValueResolverServices(ContainerBuilder $container, FileLoader $loader, array $config): void
{
// available in Symfony 6.2 and higher
if (! class_exists(EntityValueResolver::class)) {
return;
}

$loader->load('value_resolver.xml');

if (! class_exists(ExpressionLanguage::class)) {
Expand Down

0 comments on commit 628b820

Please sign in to comment.