Skip to content

Commit

Permalink
chore: remove support for Doctrine ORM v3
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Dec 24, 2021
1 parent 4b3e0f7 commit 286d3fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -37,7 +37,7 @@
"doctrine/doctrine-bundle": "^1.12 || ^2.0",
"doctrine/mongodb-odm": "^2.2",
"doctrine/mongodb-odm-bundle": "^4.0",
"doctrine/orm": "^2.6.4 || ^3.0",
"doctrine/orm": "^2.6.4",
"elasticsearch/elasticsearch": "^6.0 || ^7.0",
"friends-of-behat/mink-browserkit-driver": "^1.3.1",
"friends-of-behat/mink-extension": "^2.2",
Expand Down
Expand Up @@ -19,8 +19,8 @@
use ApiPlatform\Core\Exception\InvalidArgumentException;
use Doctrine\Bundle\DoctrineBundle\DoctrineBundle;
use Doctrine\Bundle\MongoDBBundle\DoctrineMongoDBBundle;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\OptimisticLockException;
use Doctrine\ORM\Version as DoctrineOrmVersion;
use Elasticsearch\Client as ElasticsearchClient;
use FOS\UserBundle\FOSUserBundle;
use GraphQL\GraphQL;
Expand Down Expand Up @@ -227,7 +227,7 @@ private function addDoctrineOrmSection(ArrayNodeDefinition $rootNode): void
$rootNode
->children()
->arrayNode('doctrine')
->{class_exists(DoctrineBundle::class) && class_exists(DoctrineOrmVersion::class) ? 'canBeDisabled' : 'canBeEnabled'}()
->{class_exists(DoctrineBundle::class) && interface_exists(EntityManagerInterface::class) ? 'canBeDisabled' : 'canBeEnabled'}()
->end()
->end();
}
Expand Down

0 comments on commit 286d3fa

Please sign in to comment.