diff --git a/composer.json b/composer.json index 475d37178..07c7b2b04 100644 --- a/composer.json +++ b/composer.json @@ -100,7 +100,8 @@ "autoload": { "psr-4": { "Sylius\\Bundle\\ResourceBundle\\": "src/Bundle/", - "Sylius\\Component\\Resource\\": "src/Component/" + "Sylius\\Component\\Resource\\": "src/Component/", + "Sylius\\Resource\\": "src/Component/src/" } }, "autoload-dev": { diff --git a/src/Component/Symfony/Routing/Factory/OperationRouteFactory.php b/src/Component/Symfony/Routing/Factory/OperationRouteFactory.php index 74e290362..057080e4a 100644 --- a/src/Component/Symfony/Routing/Factory/OperationRouteFactory.php +++ b/src/Component/Symfony/Routing/Factory/OperationRouteFactory.php @@ -14,10 +14,10 @@ namespace Sylius\Component\Resource\Symfony\Routing\Factory; use Gedmo\Sluggable\Util\Urlizer; -use Sylius\Component\Resource\Action\PlaceHolderAction; use Sylius\Component\Resource\Metadata\HttpOperation; use Sylius\Component\Resource\Metadata\MetadataInterface; use Sylius\Component\Resource\Metadata\ResourceMetadata; +use Sylius\Resource\Action\PlaceHolderAction; use Symfony\Component\Routing\Route; final class OperationRouteFactory implements OperationRouteFactoryInterface diff --git a/src/Component/composer.json b/src/Component/composer.json index c3d155cf4..935da2620 100644 --- a/src/Component/composer.json +++ b/src/Component/composer.json @@ -63,7 +63,8 @@ }, "autoload": { "psr-4": { - "Sylius\\Component\\Resource\\": "" + "Sylius\\Component\\Resource\\": "", + "Sylius\\Resource\\": "src/" } }, "autoload-dev": { diff --git a/src/Component/spec/Symfony/Routing/Factory/OperationRouteFactorySpec.php b/src/Component/spec/Symfony/Routing/Factory/OperationRouteFactorySpec.php index 208425180..ecfd7be30 100644 --- a/src/Component/spec/Symfony/Routing/Factory/OperationRouteFactorySpec.php +++ b/src/Component/spec/Symfony/Routing/Factory/OperationRouteFactorySpec.php @@ -15,7 +15,6 @@ use PhpSpec\ObjectBehavior; use Prophecy\Argument; -use Sylius\Component\Resource\Action\PlaceHolderAction; use Sylius\Component\Resource\Metadata\BulkDelete; use Sylius\Component\Resource\Metadata\BulkUpdate; use Sylius\Component\Resource\Metadata\Create; @@ -28,6 +27,7 @@ use Sylius\Component\Resource\Metadata\Update; use Sylius\Component\Resource\Symfony\Routing\Factory\OperationRouteFactory; use Sylius\Component\Resource\Symfony\Routing\Factory\OperationRoutePathFactoryInterface; +use Sylius\Resource\Action\PlaceHolderAction; final class OperationRouteFactorySpec extends ObjectBehavior { diff --git a/src/Component/Action/PlaceHolderAction.php b/src/Component/src/Action/PlaceHolderAction.php similarity index 90% rename from src/Component/Action/PlaceHolderAction.php rename to src/Component/src/Action/PlaceHolderAction.php index 07334399b..a97b4f0ea 100644 --- a/src/Component/Action/PlaceHolderAction.php +++ b/src/Component/src/Action/PlaceHolderAction.php @@ -11,7 +11,7 @@ declare(strict_types=1); -namespace Sylius\Component\Resource\Action; +namespace Sylius\Resource\Action; final class PlaceHolderAction {