From 2b0e6f2916038601ed11d996efb3b938913db447 Mon Sep 17 00:00:00 2001 From: aegypius Date: Tue, 20 Feb 2024 12:33:18 +0000 Subject: [PATCH 1/3] fix(hydra): update UrlGeneratorInterface namespace --- src/Hydra/Serializer/ConstraintViolationListNormalizer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Hydra/Serializer/ConstraintViolationListNormalizer.php b/src/Hydra/Serializer/ConstraintViolationListNormalizer.php index 86c5d088930..9deb6c092ab 100644 --- a/src/Hydra/Serializer/ConstraintViolationListNormalizer.php +++ b/src/Hydra/Serializer/ConstraintViolationListNormalizer.php @@ -13,7 +13,7 @@ namespace ApiPlatform\Hydra\Serializer; -use ApiPlatform\Api\UrlGeneratorInterface; +use ApiPlatform\Metadata\UrlGeneratorInterface; use ApiPlatform\Serializer\AbstractConstraintViolationListNormalizer; use Symfony\Component\Serializer\NameConverter\NameConverterInterface; From f035ae9067e3b215f33b026e3c01e32f447fcab0 Mon Sep 17 00:00:00 2001 From: aegypius Date: Tue, 20 Feb 2024 12:34:10 +0000 Subject: [PATCH 2/3] fix(symfony): use state namespace instead of api --- src/Symfony/Bundle/Resources/config/api.xml | 2 +- src/Symfony/Controller/MainController.php | 2 +- src/Symfony/EventListener/ExceptionListener.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Bundle/Resources/config/api.xml b/src/Symfony/Bundle/Resources/config/api.xml index 7efa4318d10..be47bc92f63 100644 --- a/src/Symfony/Bundle/Resources/config/api.xml +++ b/src/Symfony/Bundle/Resources/config/api.xml @@ -133,7 +133,7 @@ - + diff --git a/src/Symfony/Controller/MainController.php b/src/Symfony/Controller/MainController.php index b75d549b2db..e41f2c41848 100644 --- a/src/Symfony/Controller/MainController.php +++ b/src/Symfony/Controller/MainController.php @@ -13,13 +13,13 @@ namespace ApiPlatform\Symfony\Controller; -use ApiPlatform\Api\UriVariablesConverterInterface; use ApiPlatform\Exception\InvalidIdentifierException; use ApiPlatform\Exception\InvalidUriVariableException; use ApiPlatform\Metadata\Error; use ApiPlatform\Metadata\Exception\RuntimeException; use ApiPlatform\Metadata\HttpOperation; use ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface; +use ApiPlatform\Metadata\UriVariablesConverterInterface; use ApiPlatform\State\ProcessorInterface; use ApiPlatform\State\ProviderInterface; use ApiPlatform\State\UriVariablesResolverTrait; diff --git a/src/Symfony/EventListener/ExceptionListener.php b/src/Symfony/EventListener/ExceptionListener.php index 7aa50a5a995..d0b8b034d42 100644 --- a/src/Symfony/EventListener/ExceptionListener.php +++ b/src/Symfony/EventListener/ExceptionListener.php @@ -14,7 +14,7 @@ namespace ApiPlatform\Symfony\EventListener; use ApiPlatform\Metadata\Error; -use ApiPlatform\Util\RequestAttributesExtractor; +use ApiPlatform\State\Util\RequestAttributesExtractor; use Symfony\Component\HttpKernel\Event\ExceptionEvent; use Symfony\Component\HttpKernel\EventListener\ErrorListener; From 2a41a3a96a81138dc5b3b0bcb06e76ddeb93ee57 Mon Sep 17 00:00:00 2001 From: aegypius Date: Tue, 20 Feb 2024 14:19:04 +0100 Subject: [PATCH 3/3] fix(symfony): add doctrine-common as a direct dependency --- src/Symfony/composer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Symfony/composer.json b/src/Symfony/composer.json index 48fe9a2daa8..124318d3dcb 100644 --- a/src/Symfony/composer.json +++ b/src/Symfony/composer.json @@ -21,6 +21,7 @@ "require": { "php": ">=8.1", "api-platform/documentation": "*@dev || ^3.1", + "api-platform/doctrine-common": "*@dev || ^3.1", "api-platform/elasticsearch": "*@dev || ^3.1", "api-platform/graphql": "*@dev || ^3.1", "api-platform/http-cache": "*@dev || ^3.1",