From 09425aa8046be9c3b1ac7f657b2120eb43bd8545 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Pineau?= Date: Wed, 2 Dec 2020 16:03:07 +0100 Subject: [PATCH] Allow doctrine/common:3.0 (#191) * Allow doctrine/common 3.0 * Fixed NS for Doctrine\...\ManagerRegistry --- composer.json | 2 +- src/Configuration/ListFormFiltersConfigPass.php | 2 +- src/Helper/EmbeddedListHelper.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index e5912a25..8ca8b11c 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ "require": { "php": "^7.1.3", "doctrine/collections": "^1.5", - "doctrine/common": "^2.8", + "doctrine/common": "^2.11|^3.0", "doctrine/doctrine-bundle": "^1.8|^2.0", "doctrine/orm": "^2.6", "easycorp/easyadmin-bundle": "^2.2.2", diff --git a/src/Configuration/ListFormFiltersConfigPass.php b/src/Configuration/ListFormFiltersConfigPass.php index 67e4eb68..745c3733 100644 --- a/src/Configuration/ListFormFiltersConfigPass.php +++ b/src/Configuration/ListFormFiltersConfigPass.php @@ -3,7 +3,7 @@ namespace AlterPHP\EasyAdminExtensionBundle\Configuration; use AlterPHP\EasyAdminExtensionBundle\Model\ListFilter; -use Doctrine\Common\Persistence\ManagerRegistry; +use Doctrine\Persistence\ManagerRegistry; use Doctrine\DBAL\Types\Type as DBALType; use Doctrine\ORM\Mapping\ClassMetadataInfo; use EasyCorp\Bundle\EasyAdminBundle\Configuration\ConfigPassInterface; diff --git a/src/Helper/EmbeddedListHelper.php b/src/Helper/EmbeddedListHelper.php index c48b769d..7bbf2cf9 100644 --- a/src/Helper/EmbeddedListHelper.php +++ b/src/Helper/EmbeddedListHelper.php @@ -4,9 +4,9 @@ namespace AlterPHP\EasyAdminExtensionBundle\Helper; -use Doctrine\Common\Persistence\ManagerRegistry; use Doctrine\Common\Util\ClassUtils; use Doctrine\ORM\Mapping\ClassMetadataInfo; +use Doctrine\Persistence\ManagerRegistry; use Symfony\Component\PropertyAccess\PropertyAccess; /**