From e0011cae0ed4aa168eaaa7a0bd2495b54471abf3 Mon Sep 17 00:00:00 2001 From: Martin Eiber Date: Wed, 27 Nov 2024 11:50:40 +0100 Subject: [PATCH] Move Hydrator to FieldCollection namespace. --- config/class.yaml | 4 ++-- .../{ => FieldCollection}/LayoutDefinitionHydrator.php | 2 +- .../LayoutDefinitionHydratorInterface.php | 2 +- src/Class/Service/FieldCollection/LayoutDefinitionService.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename src/Class/Hydrator/{ => FieldCollection}/LayoutDefinitionHydrator.php (94%) rename src/Class/Hydrator/{ => FieldCollection}/LayoutDefinitionHydratorInterface.php (90%) diff --git a/config/class.yaml b/config/class.yaml index bea68e96..1de06806 100644 --- a/config/class.yaml +++ b/config/class.yaml @@ -21,5 +21,5 @@ services: # # Hydrators # - Pimcore\Bundle\StudioBackendBundle\Class\Hydrator\LayoutDefinitionHydratorInterface: - class: Pimcore\Bundle\StudioBackendBundle\Class\Hydrator\LayoutDefinitionHydrator \ No newline at end of file + Pimcore\Bundle\StudioBackendBundle\Class\Hydrator\FieldCollection\LayoutDefinitionHydratorInterface: + class: Pimcore\Bundle\StudioBackendBundle\Class\Hydrator\FieldCollection\LayoutDefinitionHydrator \ No newline at end of file diff --git a/src/Class/Hydrator/LayoutDefinitionHydrator.php b/src/Class/Hydrator/FieldCollection/LayoutDefinitionHydrator.php similarity index 94% rename from src/Class/Hydrator/LayoutDefinitionHydrator.php rename to src/Class/Hydrator/FieldCollection/LayoutDefinitionHydrator.php index 0fdb0391..ddafa45c 100644 --- a/src/Class/Hydrator/LayoutDefinitionHydrator.php +++ b/src/Class/Hydrator/FieldCollection/LayoutDefinitionHydrator.php @@ -14,7 +14,7 @@ * @license http://www.pimcore.org/license GPLv3 and PCL */ -namespace Pimcore\Bundle\StudioBackendBundle\Class\Hydrator; +namespace Pimcore\Bundle\StudioBackendBundle\Class\Hydrator\FieldCollection; use Pimcore\Bundle\StudioBackendBundle\Class\Schema\LayoutDefinition; use Pimcore\Model\DataObject\Fieldcollection\Definition as FieldCollectionDefinition; diff --git a/src/Class/Hydrator/LayoutDefinitionHydratorInterface.php b/src/Class/Hydrator/FieldCollection/LayoutDefinitionHydratorInterface.php similarity index 90% rename from src/Class/Hydrator/LayoutDefinitionHydratorInterface.php rename to src/Class/Hydrator/FieldCollection/LayoutDefinitionHydratorInterface.php index 4176d7f8..f0691955 100644 --- a/src/Class/Hydrator/LayoutDefinitionHydratorInterface.php +++ b/src/Class/Hydrator/FieldCollection/LayoutDefinitionHydratorInterface.php @@ -14,7 +14,7 @@ * @license http://www.pimcore.org/license GPLv3 and PCL */ -namespace Pimcore\Bundle\StudioBackendBundle\Class\Hydrator; +namespace Pimcore\Bundle\StudioBackendBundle\Class\Hydrator\FieldCollection; use Pimcore\Bundle\StudioBackendBundle\Class\Schema\LayoutDefinition; use Pimcore\Model\DataObject\Fieldcollection\Definition as FieldCollectionDefinition; diff --git a/src/Class/Service/FieldCollection/LayoutDefinitionService.php b/src/Class/Service/FieldCollection/LayoutDefinitionService.php index b7a1d478..7aa5b9ad 100644 --- a/src/Class/Service/FieldCollection/LayoutDefinitionService.php +++ b/src/Class/Service/FieldCollection/LayoutDefinitionService.php @@ -21,7 +21,7 @@ use Pimcore\Bundle\StaticResolverBundle\Models\DataObject\DataObjectResolverInterface; use Pimcore\Bundle\StaticResolverBundle\Models\DataObject\FieldCollection\DefinitionResolverInterface; use Pimcore\Bundle\StudioBackendBundle\Class\Event\FieldCollection\LayoutDefinitionEvent; -use Pimcore\Bundle\StudioBackendBundle\Class\Hydrator\LayoutDefinitionHydratorInterface; +use Pimcore\Bundle\StudioBackendBundle\Class\Hydrator\FieldCollection\LayoutDefinitionHydratorInterface; use Pimcore\Bundle\StudioBackendBundle\Class\Schema\LayoutDefinition; use Pimcore\Bundle\StudioBackendBundle\Exception\Api\NotFoundException; use Pimcore\Model\DataObject;