From 65abcb6f15f878ca52007d347eebfe7b6b65d837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Fr=C3=A9mont?= Date: Tue, 28 May 2024 09:19:01 +0200 Subject: [PATCH] Move some routing namespaces --- .../Resources/config/services/routing.xml | 20 +++++++++---------- .../AttributesOperationRouteFactorySpec.php | 4 ++-- ...sResourceMetadataCollectionFactorySpec.php | 2 +- ...tResourceMetadataCollectionFactorySpec.php | 2 +- .../Factory/OperationRouteFactorySpec.php | 2 +- .../OperationRouteNameFactorySpec.php | 4 ++-- .../BulkOperationRoutePathFactorySpec.php | 6 +++--- ...ollectionOperationRoutePathFactorySpec.php | 6 +++--- .../CreateOperationRoutePathFactorySpec.php | 6 +++--- .../DeleteOperationRoutePathFactorySpec.php | 6 +++--- .../ShowOperationRoutePathFactorySpec.php | 6 +++--- .../UpdateOperationRoutePathFactorySpec.php | 6 +++--- .../Symfony/Routing/RedirectHandlerSpec.php | 2 +- ...butesResourceMetadataCollectionFactory.php | 2 +- ...irectResourceMetadataCollectionFactory.php | 2 +- .../Routing/Factory/OperationRouteFactory.php | 1 + .../OperationRouteNameFactory.php | 2 +- .../OperationRouteNameFactoryInterface.php | 2 +- .../BulkOperationRoutePathFactory.php | 2 +- .../CollectionOperationRoutePathFactory.php | 2 +- .../CreateOperationRoutePathFactory.php | 2 +- .../DeleteOperationRoutePathFactory.php | 2 +- .../OperationRoutePathFactory.php | 2 +- .../OperationRoutePathFactoryInterface.php | 2 +- .../ShowOperationRoutePathFactory.php | 2 +- .../UpdateOperationRoutePathFactory.php | 2 +- .../src/Symfony/Routing/RedirectHandler.php | 2 +- 27 files changed, 50 insertions(+), 49 deletions(-) rename src/Component/spec/Symfony/Routing/Factory/{ => RouteName}/OperationRouteNameFactorySpec.php (90%) rename src/Component/spec/Symfony/Routing/Factory/{ => RoutePath}/BulkOperationRoutePathFactorySpec.php (82%) rename src/Component/spec/Symfony/Routing/Factory/{ => RoutePath}/CollectionOperationRoutePathFactorySpec.php (84%) rename src/Component/spec/Symfony/Routing/Factory/{ => RoutePath}/CreateOperationRoutePathFactorySpec.php (84%) rename src/Component/spec/Symfony/Routing/Factory/{ => RoutePath}/DeleteOperationRoutePathFactorySpec.php (88%) rename src/Component/spec/Symfony/Routing/Factory/{ => RoutePath}/ShowOperationRoutePathFactorySpec.php (87%) rename src/Component/spec/Symfony/Routing/Factory/{ => RoutePath}/UpdateOperationRoutePathFactorySpec.php (88%) rename src/Component/src/Symfony/Routing/Factory/{ => RouteName}/OperationRouteNameFactory.php (94%) rename src/Component/src/Symfony/Routing/Factory/{ => RouteName}/OperationRouteNameFactoryInterface.php (87%) rename src/Component/src/Symfony/Routing/Factory/{ => RoutePath}/BulkOperationRoutePathFactory.php (93%) rename src/Component/src/Symfony/Routing/Factory/{ => RoutePath}/CollectionOperationRoutePathFactory.php (94%) rename src/Component/src/Symfony/Routing/Factory/{ => RoutePath}/CreateOperationRoutePathFactory.php (94%) rename src/Component/src/Symfony/Routing/Factory/{ => RoutePath}/DeleteOperationRoutePathFactory.php (94%) rename src/Component/src/Symfony/Routing/Factory/{ => RoutePath}/OperationRoutePathFactory.php (91%) rename src/Component/src/Symfony/Routing/Factory/{ => RoutePath}/OperationRoutePathFactoryInterface.php (88%) rename src/Component/src/Symfony/Routing/Factory/{ => RoutePath}/ShowOperationRoutePathFactory.php (94%) rename src/Component/src/Symfony/Routing/Factory/{ => RoutePath}/UpdateOperationRoutePathFactory.php (94%) diff --git a/src/Bundle/Resources/config/services/routing.xml b/src/Bundle/Resources/config/services/routing.xml index a84844b94..8ad1108be 100644 --- a/src/Bundle/Resources/config/services/routing.xml +++ b/src/Bundle/Resources/config/services/routing.xml @@ -39,16 +39,16 @@ - - + + - + - + @@ -56,7 +56,7 @@ @@ -64,7 +64,7 @@ @@ -72,7 +72,7 @@ @@ -80,7 +80,7 @@ @@ -88,7 +88,7 @@ diff --git a/src/Bundle/spec/Routing/AttributesOperationRouteFactorySpec.php b/src/Bundle/spec/Routing/AttributesOperationRouteFactorySpec.php index a794d9718..4f9047365 100644 --- a/src/Bundle/spec/Routing/AttributesOperationRouteFactorySpec.php +++ b/src/Bundle/spec/Routing/AttributesOperationRouteFactorySpec.php @@ -25,8 +25,8 @@ use Sylius\Resource\Metadata\Show; use Sylius\Resource\Metadata\Update; use Sylius\Resource\Symfony\Routing\Factory\OperationRouteFactory; -use Sylius\Resource\Symfony\Routing\Factory\OperationRouteNameFactory; -use Sylius\Resource\Symfony\Routing\Factory\OperationRoutePathFactoryInterface; +use Sylius\Resource\Symfony\Routing\Factory\RouteName\OperationRouteNameFactory; +use Sylius\Resource\Symfony\Routing\Factory\RoutePath\OperationRoutePathFactoryInterface; use Symfony\Component\Routing\RouteCollection; use Webmozart\Assert\Assert; diff --git a/src/Component/spec/Metadata/Resource/Factory/AttributesResourceMetadataCollectionFactorySpec.php b/src/Component/spec/Metadata/Resource/Factory/AttributesResourceMetadataCollectionFactorySpec.php index 5d767df3c..82dfbe125 100644 --- a/src/Component/spec/Metadata/Resource/Factory/AttributesResourceMetadataCollectionFactorySpec.php +++ b/src/Component/spec/Metadata/Resource/Factory/AttributesResourceMetadataCollectionFactorySpec.php @@ -41,7 +41,7 @@ use Sylius\Resource\Metadata\Show; use Sylius\Resource\Metadata\Update; use Sylius\Resource\Symfony\Request\State\Responder; -use Sylius\Resource\Symfony\Routing\Factory\OperationRouteNameFactory; +use Sylius\Resource\Symfony\Routing\Factory\RouteName\OperationRouteNameFactory; final class AttributesResourceMetadataCollectionFactorySpec extends ObjectBehavior { diff --git a/src/Component/spec/Metadata/Resource/Factory/RedirectResourceMetadataCollectionFactorySpec.php b/src/Component/spec/Metadata/Resource/Factory/RedirectResourceMetadataCollectionFactorySpec.php index 36b40b29a..59f0c3651 100644 --- a/src/Component/spec/Metadata/Resource/Factory/RedirectResourceMetadataCollectionFactorySpec.php +++ b/src/Component/spec/Metadata/Resource/Factory/RedirectResourceMetadataCollectionFactorySpec.php @@ -24,7 +24,7 @@ use Sylius\Resource\Metadata\ResourceMetadata; use Sylius\Resource\Metadata\Show; use Sylius\Resource\Metadata\Update; -use Sylius\Resource\Symfony\Routing\Factory\OperationRouteNameFactory; +use Sylius\Resource\Symfony\Routing\Factory\RouteName\OperationRouteNameFactory; final class RedirectResourceMetadataCollectionFactorySpec extends ObjectBehavior { diff --git a/src/Component/spec/Symfony/Routing/Factory/OperationRouteFactorySpec.php b/src/Component/spec/Symfony/Routing/Factory/OperationRouteFactorySpec.php index 1c8db7a51..edc46a93f 100644 --- a/src/Component/spec/Symfony/Routing/Factory/OperationRouteFactorySpec.php +++ b/src/Component/spec/Symfony/Routing/Factory/OperationRouteFactorySpec.php @@ -26,7 +26,7 @@ use Sylius\Resource\Metadata\Show; use Sylius\Resource\Metadata\Update; use Sylius\Resource\Symfony\Routing\Factory\OperationRouteFactory; -use Sylius\Resource\Symfony\Routing\Factory\OperationRoutePathFactoryInterface; +use Sylius\Resource\Symfony\Routing\Factory\RoutePath\OperationRoutePathFactoryInterface; final class OperationRouteFactorySpec extends ObjectBehavior { diff --git a/src/Component/spec/Symfony/Routing/Factory/OperationRouteNameFactorySpec.php b/src/Component/spec/Symfony/Routing/Factory/RouteName/OperationRouteNameFactorySpec.php similarity index 90% rename from src/Component/spec/Symfony/Routing/Factory/OperationRouteNameFactorySpec.php rename to src/Component/spec/Symfony/Routing/Factory/RouteName/OperationRouteNameFactorySpec.php index cf96b0cce..8a8a79028 100644 --- a/src/Component/spec/Symfony/Routing/Factory/OperationRouteNameFactorySpec.php +++ b/src/Component/spec/Symfony/Routing/Factory/RouteName/OperationRouteNameFactorySpec.php @@ -11,12 +11,12 @@ declare(strict_types=1); -namespace spec\Sylius\Resource\Symfony\Routing\Factory; +namespace spec\Sylius\Resource\Symfony\Routing\Factory\RouteName; use PhpSpec\ObjectBehavior; use Sylius\Resource\Metadata\Create; use Sylius\Resource\Metadata\ResourceMetadata; -use Sylius\Resource\Symfony\Routing\Factory\OperationRouteNameFactory; +use Sylius\Resource\Symfony\Routing\Factory\RouteName\OperationRouteNameFactory; final class OperationRouteNameFactorySpec extends ObjectBehavior { diff --git a/src/Component/spec/Symfony/Routing/Factory/BulkOperationRoutePathFactorySpec.php b/src/Component/spec/Symfony/Routing/Factory/RoutePath/BulkOperationRoutePathFactorySpec.php similarity index 82% rename from src/Component/spec/Symfony/Routing/Factory/BulkOperationRoutePathFactorySpec.php rename to src/Component/spec/Symfony/Routing/Factory/RoutePath/BulkOperationRoutePathFactorySpec.php index fe6445f7d..945052116 100644 --- a/src/Component/spec/Symfony/Routing/Factory/BulkOperationRoutePathFactorySpec.php +++ b/src/Component/spec/Symfony/Routing/Factory/RoutePath/BulkOperationRoutePathFactorySpec.php @@ -11,13 +11,13 @@ declare(strict_types=1); -namespace spec\Sylius\Resource\Symfony\Routing\Factory; +namespace spec\Sylius\Resource\Symfony\Routing\Factory\RoutePath; use PhpSpec\ObjectBehavior; use Sylius\Resource\Metadata\BulkDelete; use Sylius\Resource\Metadata\BulkUpdate; -use Sylius\Resource\Symfony\Routing\Factory\BulkOperationRoutePathFactory; -use Sylius\Resource\Symfony\Routing\Factory\OperationRoutePathFactoryInterface; +use Sylius\Resource\Symfony\Routing\Factory\RoutePath\BulkOperationRoutePathFactory; +use Sylius\Resource\Symfony\Routing\Factory\RoutePath\OperationRoutePathFactoryInterface; final class BulkOperationRoutePathFactorySpec extends ObjectBehavior { diff --git a/src/Component/spec/Symfony/Routing/Factory/CollectionOperationRoutePathFactorySpec.php b/src/Component/spec/Symfony/Routing/Factory/RoutePath/CollectionOperationRoutePathFactorySpec.php similarity index 84% rename from src/Component/spec/Symfony/Routing/Factory/CollectionOperationRoutePathFactorySpec.php rename to src/Component/spec/Symfony/Routing/Factory/RoutePath/CollectionOperationRoutePathFactorySpec.php index 75da15a84..6aa4db95f 100644 --- a/src/Component/spec/Symfony/Routing/Factory/CollectionOperationRoutePathFactorySpec.php +++ b/src/Component/spec/Symfony/Routing/Factory/RoutePath/CollectionOperationRoutePathFactorySpec.php @@ -11,13 +11,13 @@ declare(strict_types=1); -namespace spec\Sylius\Resource\Symfony\Routing\Factory; +namespace spec\Sylius\Resource\Symfony\Routing\Factory\RoutePath; use PhpSpec\ObjectBehavior; use Sylius\Resource\Metadata\Api; use Sylius\Resource\Metadata\Index; -use Sylius\Resource\Symfony\Routing\Factory\CollectionOperationRoutePathFactory; -use Sylius\Resource\Symfony\Routing\Factory\OperationRoutePathFactoryInterface; +use Sylius\Resource\Symfony\Routing\Factory\RoutePath\CollectionOperationRoutePathFactory; +use Sylius\Resource\Symfony\Routing\Factory\RoutePath\OperationRoutePathFactoryInterface; final class CollectionOperationRoutePathFactorySpec extends ObjectBehavior { diff --git a/src/Component/spec/Symfony/Routing/Factory/CreateOperationRoutePathFactorySpec.php b/src/Component/spec/Symfony/Routing/Factory/RoutePath/CreateOperationRoutePathFactorySpec.php similarity index 84% rename from src/Component/spec/Symfony/Routing/Factory/CreateOperationRoutePathFactorySpec.php rename to src/Component/spec/Symfony/Routing/Factory/RoutePath/CreateOperationRoutePathFactorySpec.php index a6f4d0eae..1ebfb3b57 100644 --- a/src/Component/spec/Symfony/Routing/Factory/CreateOperationRoutePathFactorySpec.php +++ b/src/Component/spec/Symfony/Routing/Factory/RoutePath/CreateOperationRoutePathFactorySpec.php @@ -11,13 +11,13 @@ declare(strict_types=1); -namespace spec\Sylius\Resource\Symfony\Routing\Factory; +namespace spec\Sylius\Resource\Symfony\Routing\Factory\RoutePath; use PhpSpec\ObjectBehavior; use Sylius\Resource\Metadata\Api; use Sylius\Resource\Metadata\Create; -use Sylius\Resource\Symfony\Routing\Factory\CreateOperationRoutePathFactory; -use Sylius\Resource\Symfony\Routing\Factory\OperationRoutePathFactoryInterface; +use Sylius\Resource\Symfony\Routing\Factory\RoutePath\CreateOperationRoutePathFactory; +use Sylius\Resource\Symfony\Routing\Factory\RoutePath\OperationRoutePathFactoryInterface; final class CreateOperationRoutePathFactorySpec extends ObjectBehavior { diff --git a/src/Component/spec/Symfony/Routing/Factory/DeleteOperationRoutePathFactorySpec.php b/src/Component/spec/Symfony/Routing/Factory/RoutePath/DeleteOperationRoutePathFactorySpec.php similarity index 88% rename from src/Component/spec/Symfony/Routing/Factory/DeleteOperationRoutePathFactorySpec.php rename to src/Component/spec/Symfony/Routing/Factory/RoutePath/DeleteOperationRoutePathFactorySpec.php index cd9e6747a..dbbffde1f 100644 --- a/src/Component/spec/Symfony/Routing/Factory/DeleteOperationRoutePathFactorySpec.php +++ b/src/Component/spec/Symfony/Routing/Factory/RoutePath/DeleteOperationRoutePathFactorySpec.php @@ -11,14 +11,14 @@ declare(strict_types=1); -namespace spec\Sylius\Resource\Symfony\Routing\Factory; +namespace spec\Sylius\Resource\Symfony\Routing\Factory\RoutePath; use PhpSpec\ObjectBehavior; use Sylius\Resource\Metadata\Api; use Sylius\Resource\Metadata\Delete; use Sylius\Resource\Metadata\ResourceMetadata; -use Sylius\Resource\Symfony\Routing\Factory\DeleteOperationRoutePathFactory; -use Sylius\Resource\Symfony\Routing\Factory\OperationRoutePathFactoryInterface; +use Sylius\Resource\Symfony\Routing\Factory\RoutePath\DeleteOperationRoutePathFactory; +use Sylius\Resource\Symfony\Routing\Factory\RoutePath\OperationRoutePathFactoryInterface; final class DeleteOperationRoutePathFactorySpec extends ObjectBehavior { diff --git a/src/Component/spec/Symfony/Routing/Factory/ShowOperationRoutePathFactorySpec.php b/src/Component/spec/Symfony/Routing/Factory/RoutePath/ShowOperationRoutePathFactorySpec.php similarity index 87% rename from src/Component/spec/Symfony/Routing/Factory/ShowOperationRoutePathFactorySpec.php rename to src/Component/spec/Symfony/Routing/Factory/RoutePath/ShowOperationRoutePathFactorySpec.php index 7181b05da..63ff2e0e0 100644 --- a/src/Component/spec/Symfony/Routing/Factory/ShowOperationRoutePathFactorySpec.php +++ b/src/Component/spec/Symfony/Routing/Factory/RoutePath/ShowOperationRoutePathFactorySpec.php @@ -11,14 +11,14 @@ declare(strict_types=1); -namespace spec\Sylius\Resource\Symfony\Routing\Factory; +namespace spec\Sylius\Resource\Symfony\Routing\Factory\RoutePath; use PhpSpec\ObjectBehavior; use Sylius\Resource\Metadata\Api; use Sylius\Resource\Metadata\ResourceMetadata; use Sylius\Resource\Metadata\Show; -use Sylius\Resource\Symfony\Routing\Factory\OperationRoutePathFactoryInterface; -use Sylius\Resource\Symfony\Routing\Factory\ShowOperationRoutePathFactory; +use Sylius\Resource\Symfony\Routing\Factory\RoutePath\OperationRoutePathFactoryInterface; +use Sylius\Resource\Symfony\Routing\Factory\RoutePath\ShowOperationRoutePathFactory; final class ShowOperationRoutePathFactorySpec extends ObjectBehavior { diff --git a/src/Component/spec/Symfony/Routing/Factory/UpdateOperationRoutePathFactorySpec.php b/src/Component/spec/Symfony/Routing/Factory/RoutePath/UpdateOperationRoutePathFactorySpec.php similarity index 88% rename from src/Component/spec/Symfony/Routing/Factory/UpdateOperationRoutePathFactorySpec.php rename to src/Component/spec/Symfony/Routing/Factory/RoutePath/UpdateOperationRoutePathFactorySpec.php index 2a6c3afc6..024540268 100644 --- a/src/Component/spec/Symfony/Routing/Factory/UpdateOperationRoutePathFactorySpec.php +++ b/src/Component/spec/Symfony/Routing/Factory/RoutePath/UpdateOperationRoutePathFactorySpec.php @@ -11,14 +11,14 @@ declare(strict_types=1); -namespace spec\Sylius\Resource\Symfony\Routing\Factory; +namespace spec\Sylius\Resource\Symfony\Routing\Factory\RoutePath; use PhpSpec\ObjectBehavior; use Sylius\Resource\Metadata\Api; use Sylius\Resource\Metadata\ResourceMetadata; use Sylius\Resource\Metadata\Update; -use Sylius\Resource\Symfony\Routing\Factory\OperationRoutePathFactoryInterface; -use Sylius\Resource\Symfony\Routing\Factory\UpdateOperationRoutePathFactory; +use Sylius\Resource\Symfony\Routing\Factory\RoutePath\OperationRoutePathFactoryInterface; +use Sylius\Resource\Symfony\Routing\Factory\RoutePath\UpdateOperationRoutePathFactory; final class UpdateOperationRoutePathFactorySpec extends ObjectBehavior { diff --git a/src/Component/spec/Symfony/Routing/RedirectHandlerSpec.php b/src/Component/spec/Symfony/Routing/RedirectHandlerSpec.php index fd3d9d914..82f6fff81 100644 --- a/src/Component/spec/Symfony/Routing/RedirectHandlerSpec.php +++ b/src/Component/spec/Symfony/Routing/RedirectHandlerSpec.php @@ -20,7 +20,7 @@ use Sylius\Resource\Metadata\Delete; use Sylius\Resource\Metadata\ResourceMetadata; use Sylius\Resource\Symfony\ExpressionLanguage\ArgumentParserInterface; -use Sylius\Resource\Symfony\Routing\Factory\OperationRouteNameFactoryInterface; +use Sylius\Resource\Symfony\Routing\Factory\RouteName\OperationRouteNameFactoryInterface; use Sylius\Resource\Symfony\Routing\RedirectHandler; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Routing\RouterInterface; diff --git a/src/Component/src/Metadata/Resource/Factory/AttributesResourceMetadataCollectionFactory.php b/src/Component/src/Metadata/Resource/Factory/AttributesResourceMetadataCollectionFactory.php index 63973e3b0..23e4d1de8 100644 --- a/src/Component/src/Metadata/Resource/Factory/AttributesResourceMetadataCollectionFactory.php +++ b/src/Component/src/Metadata/Resource/Factory/AttributesResourceMetadataCollectionFactory.php @@ -23,7 +23,7 @@ use Sylius\Resource\Metadata\ResourceMetadata; use Sylius\Resource\Reflection\ClassReflection; use Sylius\Resource\Symfony\Request\State\Responder; -use Sylius\Resource\Symfony\Routing\Factory\OperationRouteNameFactory; +use Sylius\Resource\Symfony\Routing\Factory\RouteName\OperationRouteNameFactory; final class AttributesResourceMetadataCollectionFactory implements ResourceMetadataCollectionFactoryInterface { diff --git a/src/Component/src/Metadata/Resource/Factory/RedirectResourceMetadataCollectionFactory.php b/src/Component/src/Metadata/Resource/Factory/RedirectResourceMetadataCollectionFactory.php index af697f754..c9d46a3c1 100644 --- a/src/Component/src/Metadata/Resource/Factory/RedirectResourceMetadataCollectionFactory.php +++ b/src/Component/src/Metadata/Resource/Factory/RedirectResourceMetadataCollectionFactory.php @@ -22,7 +22,7 @@ use Sylius\Resource\Metadata\Resource\ResourceMetadataCollection; use Sylius\Resource\Metadata\ResourceMetadata; use Sylius\Resource\Metadata\UpdateOperationInterface; -use Sylius\Resource\Symfony\Routing\Factory\OperationRouteNameFactory; +use Sylius\Resource\Symfony\Routing\Factory\RouteName\OperationRouteNameFactory; final class RedirectResourceMetadataCollectionFactory implements ResourceMetadataCollectionFactoryInterface { diff --git a/src/Component/src/Symfony/Routing/Factory/OperationRouteFactory.php b/src/Component/src/Symfony/Routing/Factory/OperationRouteFactory.php index be4faa4d3..624a23ea1 100644 --- a/src/Component/src/Symfony/Routing/Factory/OperationRouteFactory.php +++ b/src/Component/src/Symfony/Routing/Factory/OperationRouteFactory.php @@ -17,6 +17,7 @@ use Sylius\Resource\Metadata\HttpOperation; use Sylius\Resource\Metadata\MetadataInterface; use Sylius\Resource\Metadata\ResourceMetadata; +use Sylius\Resource\Symfony\Routing\Factory\RoutePath\OperationRoutePathFactoryInterface; use Symfony\Component\Routing\Route; final class OperationRouteFactory implements OperationRouteFactoryInterface diff --git a/src/Component/src/Symfony/Routing/Factory/OperationRouteNameFactory.php b/src/Component/src/Symfony/Routing/Factory/RouteName/OperationRouteNameFactory.php similarity index 94% rename from src/Component/src/Symfony/Routing/Factory/OperationRouteNameFactory.php rename to src/Component/src/Symfony/Routing/Factory/RouteName/OperationRouteNameFactory.php index da8ea7773..1a1d76cd8 100644 --- a/src/Component/src/Symfony/Routing/Factory/OperationRouteNameFactory.php +++ b/src/Component/src/Symfony/Routing/Factory/RouteName/OperationRouteNameFactory.php @@ -11,7 +11,7 @@ declare(strict_types=1); -namespace Sylius\Resource\Symfony\Routing\Factory; +namespace Sylius\Resource\Symfony\Routing\Factory\RouteName; use Sylius\Resource\Metadata\Operation; diff --git a/src/Component/src/Symfony/Routing/Factory/OperationRouteNameFactoryInterface.php b/src/Component/src/Symfony/Routing/Factory/RouteName/OperationRouteNameFactoryInterface.php similarity index 87% rename from src/Component/src/Symfony/Routing/Factory/OperationRouteNameFactoryInterface.php rename to src/Component/src/Symfony/Routing/Factory/RouteName/OperationRouteNameFactoryInterface.php index 1e6ca0145..e95e65d5f 100644 --- a/src/Component/src/Symfony/Routing/Factory/OperationRouteNameFactoryInterface.php +++ b/src/Component/src/Symfony/Routing/Factory/RouteName/OperationRouteNameFactoryInterface.php @@ -11,7 +11,7 @@ declare(strict_types=1); -namespace Sylius\Resource\Symfony\Routing\Factory; +namespace Sylius\Resource\Symfony\Routing\Factory\RouteName; use Sylius\Resource\Metadata\Operation; diff --git a/src/Component/src/Symfony/Routing/Factory/BulkOperationRoutePathFactory.php b/src/Component/src/Symfony/Routing/Factory/RoutePath/BulkOperationRoutePathFactory.php similarity index 93% rename from src/Component/src/Symfony/Routing/Factory/BulkOperationRoutePathFactory.php rename to src/Component/src/Symfony/Routing/Factory/RoutePath/BulkOperationRoutePathFactory.php index 5a0155281..156c6f9d3 100644 --- a/src/Component/src/Symfony/Routing/Factory/BulkOperationRoutePathFactory.php +++ b/src/Component/src/Symfony/Routing/Factory/RoutePath/BulkOperationRoutePathFactory.php @@ -11,7 +11,7 @@ declare(strict_types=1); -namespace Sylius\Resource\Symfony\Routing\Factory; +namespace Sylius\Resource\Symfony\Routing\Factory\RoutePath; use Sylius\Resource\Metadata\BulkOperationInterface; use Sylius\Resource\Metadata\HttpOperation; diff --git a/src/Component/src/Symfony/Routing/Factory/CollectionOperationRoutePathFactory.php b/src/Component/src/Symfony/Routing/Factory/RoutePath/CollectionOperationRoutePathFactory.php similarity index 94% rename from src/Component/src/Symfony/Routing/Factory/CollectionOperationRoutePathFactory.php rename to src/Component/src/Symfony/Routing/Factory/RoutePath/CollectionOperationRoutePathFactory.php index 39142a2e7..1a00d7e2b 100644 --- a/src/Component/src/Symfony/Routing/Factory/CollectionOperationRoutePathFactory.php +++ b/src/Component/src/Symfony/Routing/Factory/RoutePath/CollectionOperationRoutePathFactory.php @@ -11,7 +11,7 @@ declare(strict_types=1); -namespace Sylius\Resource\Symfony\Routing\Factory; +namespace Sylius\Resource\Symfony\Routing\Factory\RoutePath; use Sylius\Resource\Metadata\CollectionOperationInterface; use Sylius\Resource\Metadata\HttpOperation; diff --git a/src/Component/src/Symfony/Routing/Factory/CreateOperationRoutePathFactory.php b/src/Component/src/Symfony/Routing/Factory/RoutePath/CreateOperationRoutePathFactory.php similarity index 94% rename from src/Component/src/Symfony/Routing/Factory/CreateOperationRoutePathFactory.php rename to src/Component/src/Symfony/Routing/Factory/RoutePath/CreateOperationRoutePathFactory.php index de44d3022..85dab2ebf 100644 --- a/src/Component/src/Symfony/Routing/Factory/CreateOperationRoutePathFactory.php +++ b/src/Component/src/Symfony/Routing/Factory/RoutePath/CreateOperationRoutePathFactory.php @@ -11,7 +11,7 @@ declare(strict_types=1); -namespace Sylius\Resource\Symfony\Routing\Factory; +namespace Sylius\Resource\Symfony\Routing\Factory\RoutePath; use Sylius\Resource\Metadata\CreateOperationInterface; use Sylius\Resource\Metadata\HttpOperation; diff --git a/src/Component/src/Symfony/Routing/Factory/DeleteOperationRoutePathFactory.php b/src/Component/src/Symfony/Routing/Factory/RoutePath/DeleteOperationRoutePathFactory.php similarity index 94% rename from src/Component/src/Symfony/Routing/Factory/DeleteOperationRoutePathFactory.php rename to src/Component/src/Symfony/Routing/Factory/RoutePath/DeleteOperationRoutePathFactory.php index 3592721ea..e3db5efce 100644 --- a/src/Component/src/Symfony/Routing/Factory/DeleteOperationRoutePathFactory.php +++ b/src/Component/src/Symfony/Routing/Factory/RoutePath/DeleteOperationRoutePathFactory.php @@ -11,7 +11,7 @@ declare(strict_types=1); -namespace Sylius\Resource\Symfony\Routing\Factory; +namespace Sylius\Resource\Symfony\Routing\Factory\RoutePath; use Sylius\Resource\Metadata\Api\ApiOperationInterface; use Sylius\Resource\Metadata\DeleteOperationInterface; diff --git a/src/Component/src/Symfony/Routing/Factory/OperationRoutePathFactory.php b/src/Component/src/Symfony/Routing/Factory/RoutePath/OperationRoutePathFactory.php similarity index 91% rename from src/Component/src/Symfony/Routing/Factory/OperationRoutePathFactory.php rename to src/Component/src/Symfony/Routing/Factory/RoutePath/OperationRoutePathFactory.php index 6e1bcb653..79e5e1fb1 100644 --- a/src/Component/src/Symfony/Routing/Factory/OperationRoutePathFactory.php +++ b/src/Component/src/Symfony/Routing/Factory/RoutePath/OperationRoutePathFactory.php @@ -11,7 +11,7 @@ declare(strict_types=1); -namespace Sylius\Resource\Symfony\Routing\Factory; +namespace Sylius\Resource\Symfony\Routing\Factory\RoutePath; use Sylius\Resource\Metadata\Operation; diff --git a/src/Component/src/Symfony/Routing/Factory/OperationRoutePathFactoryInterface.php b/src/Component/src/Symfony/Routing/Factory/RoutePath/OperationRoutePathFactoryInterface.php similarity index 88% rename from src/Component/src/Symfony/Routing/Factory/OperationRoutePathFactoryInterface.php rename to src/Component/src/Symfony/Routing/Factory/RoutePath/OperationRoutePathFactoryInterface.php index cfd4a8d54..70f945fd5 100644 --- a/src/Component/src/Symfony/Routing/Factory/OperationRoutePathFactoryInterface.php +++ b/src/Component/src/Symfony/Routing/Factory/RoutePath/OperationRoutePathFactoryInterface.php @@ -11,7 +11,7 @@ declare(strict_types=1); -namespace Sylius\Resource\Symfony\Routing\Factory; +namespace Sylius\Resource\Symfony\Routing\Factory\RoutePath; use Sylius\Resource\Metadata\HttpOperation; diff --git a/src/Component/src/Symfony/Routing/Factory/ShowOperationRoutePathFactory.php b/src/Component/src/Symfony/Routing/Factory/RoutePath/ShowOperationRoutePathFactory.php similarity index 94% rename from src/Component/src/Symfony/Routing/Factory/ShowOperationRoutePathFactory.php rename to src/Component/src/Symfony/Routing/Factory/RoutePath/ShowOperationRoutePathFactory.php index a7b3c8897..21f68adaf 100644 --- a/src/Component/src/Symfony/Routing/Factory/ShowOperationRoutePathFactory.php +++ b/src/Component/src/Symfony/Routing/Factory/RoutePath/ShowOperationRoutePathFactory.php @@ -11,7 +11,7 @@ declare(strict_types=1); -namespace Sylius\Resource\Symfony\Routing\Factory; +namespace Sylius\Resource\Symfony\Routing\Factory\RoutePath; use Sylius\Resource\Metadata\HttpOperation; use Sylius\Resource\Metadata\ShowOperationInterface; diff --git a/src/Component/src/Symfony/Routing/Factory/UpdateOperationRoutePathFactory.php b/src/Component/src/Symfony/Routing/Factory/RoutePath/UpdateOperationRoutePathFactory.php similarity index 94% rename from src/Component/src/Symfony/Routing/Factory/UpdateOperationRoutePathFactory.php rename to src/Component/src/Symfony/Routing/Factory/RoutePath/UpdateOperationRoutePathFactory.php index 2a9dfa237..37c550289 100644 --- a/src/Component/src/Symfony/Routing/Factory/UpdateOperationRoutePathFactory.php +++ b/src/Component/src/Symfony/Routing/Factory/RoutePath/UpdateOperationRoutePathFactory.php @@ -11,7 +11,7 @@ declare(strict_types=1); -namespace Sylius\Resource\Symfony\Routing\Factory; +namespace Sylius\Resource\Symfony\Routing\Factory\RoutePath; use Sylius\Resource\Metadata\HttpOperation; use Sylius\Resource\Metadata\UpdateOperationInterface; diff --git a/src/Component/src/Symfony/Routing/RedirectHandler.php b/src/Component/src/Symfony/Routing/RedirectHandler.php index d0f0d8aa0..1f3c52b67 100644 --- a/src/Component/src/Symfony/Routing/RedirectHandler.php +++ b/src/Component/src/Symfony/Routing/RedirectHandler.php @@ -18,7 +18,7 @@ use Sylius\Resource\Metadata\HttpOperation; use Sylius\Resource\Metadata\ResourceMetadata; use Sylius\Resource\Symfony\ExpressionLanguage\ArgumentParserInterface; -use Sylius\Resource\Symfony\Routing\Factory\OperationRouteNameFactoryInterface; +use Sylius\Resource\Symfony\Routing\Factory\RouteName\OperationRouteNameFactoryInterface; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\PropertyAccess\PropertyAccess;