Skip to content

Commit

Permalink
Remove Component namespace on action
Browse files Browse the repository at this point in the history
  • Loading branch information
loic425 committed Oct 24, 2023
1 parent b0646fe commit 1a3c7b6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/Component/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
},
"autoload": {
"psr-4": {
"Sylius\\Component\\Resource\\": ""
"Sylius\\Component\\Resource\\": "",
"Sylius\\Resource\\": "src/"
}
},
"autoload-dev": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

declare(strict_types=1);

namespace Sylius\Component\Resource\Action;
namespace Sylius\Resource\Action;

final class PlaceHolderAction
{
Expand All @@ -23,3 +23,5 @@ public function __invoke($data = null): mixed
return $data;
}
}

class_alias(PlaceHolderAction::class, \Sylius\Component\Resource\Action\PlaceHolderAction::class);

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.1, Symfony ^5.4, Twig ^3.0, Persistence: ^3.0, Collections: ^2.0

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.1, Symfony ~6.2.0, Twig ^3.0, Persistence: ^3.0, Collections: ^2.0

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.1, Symfony ^5.4, Twig ^3.0, Persistence: ^2.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.1, Symfony ~6.2.0, Twig ^2.12, Persistence: ^2.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.1, Symfony ~6.0.0, Twig ^2.12, Persistence: ^3.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.1, Symfony ^5.4, Twig ^2.12, Persistence: ^3.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.0, Symfony ^5.4, Twig , Persistence: , Collections:

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.2, Symfony ~6.2.0, Twig ^2.12, Persistence: ^3.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.2, Symfony ^5.4, Twig ^2.12, Persistence: ^3.0, Collections: ^2.0

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.0, Symfony ~6.0.0, Twig ^2.12, Persistence: ^2.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.1, Symfony ~6.2.0, Twig ^2.12, Persistence: ^3.0, Collections: ^2.0

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.2, Symfony ~6.0.0, Twig ^3.0, Persistence: ^3.0, Collections: ^2.0

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.2, Symfony ~6.1.0, Twig ^2.12, Persistence: ^3.0, Collections: ^2.0

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.1, Symfony ~6.0.0, Twig ^2.12, Persistence: ^3.0, Collections: ^2.0

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.0, Symfony ^5.4, Twig ^3.0, Persistence: ^3.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.1, Symfony ^5.4, Twig ^2.12, Persistence: ^3.0, Collections: ^2.0

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.1, Symfony ~6.1.0, Twig ^2.12, Persistence: ^3.0, Collections: ^2.0

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.0, Symfony ~6.0.0, Twig ^3.0, Persistence: ^2.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.1, Symfony ~6.2.0, Twig ^3.0, Persistence: ^3.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.2, Symfony ^5.4, Twig ^3.0, Persistence: ^2.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.0, Symfony ^5.4, Twig ^2.12, Persistence: ^3.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.1, Symfony ~6.1.0, Twig ^2.12, Persistence: ^3.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.1, Symfony ^5.4, Twig ^2.12, Persistence: ^2.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.2, Symfony ^5.4, Twig ^3.0, Persistence: ^3.0, Collections: ^2.0

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.2, Symfony ~6.1.0, Twig ^3.0, Persistence: ^2.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.2, Symfony ~6.0.0, Twig ^3.0, Persistence: ^3.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.1, Symfony ~6.1.0, Twig ^2.12, Persistence: ^2.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.2, Symfony ~6.2.0, Twig ^2.12, Persistence: ^2.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.2, Symfony ~6.1.0, Twig ^2.12, Persistence: ^2.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.1, Symfony ~6.0.0, Twig ^3.0, Persistence: ^3.0, Collections: ^2.0

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.0, Symfony ~6.0.0, Twig ^3.0, Persistence: ^3.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.1, Symfony ~6.1.0, Twig ^3.0, Persistence: ^2.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.0, Symfony ^5.4, Twig ^2.12, Persistence: ^2.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.1, Symfony ~6.0.0, Twig ^3.0, Persistence: ^2.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.1, Symfony ^5.4, Twig ^3.0, Persistence: ^3.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.2, Symfony ~6.2.0, Twig ^2.12, Persistence: ^3.0, Collections: ^2.0

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.2, Symfony ~6.0.0, Twig ^2.12, Persistence: ^3.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.2, Symfony ~6.0.0, Twig ^3.0, Persistence: ^2.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.1, Symfony ~6.0.0, Twig ^2.12, Persistence: ^2.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.0, Symfony ^5.4, Twig ^3.0, Persistence: ^2.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.2, Symfony ~6.1.0, Twig ^3.0, Persistence: ^3.0, Collections: ^2.0

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.1, Symfony ~6.1.0, Twig ^3.0, Persistence: ^3.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.0, Symfony ~6.0.0, Twig ^2.12, Persistence: ^3.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.1, Symfony ~6.2.0, Twig ^2.12, Persistence: ^3.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.2, Symfony ~6.1.0, Twig ^3.0, Persistence: ^3.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.1, Symfony ~6.1.0, Twig ^3.0, Persistence: ^3.0, Collections: ^2.0

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.2, Symfony ~6.2.0, Twig ^3.0, Persistence: ^2.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.1, Symfony ~6.2.0, Twig ^3.0, Persistence: ^2.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.2, Symfony ~6.0.0, Twig ^2.12, Persistence: ^3.0, Collections: ^2.0

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.2, Symfony ~6.1.0, Twig ^2.12, Persistence: ^3.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.2, Symfony ^5.4, Twig ^3.0, Persistence: ^3.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.2, Symfony ^5.4, Twig ^2.12, Persistence: ^3.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.2, Symfony ~6.0.0, Twig ^2.12, Persistence: ^2.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.2, Symfony ^5.4, Twig ^2.12, Persistence: ^2.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.2, Symfony ~6.2.0, Twig ^3.0, Persistence: ^3.0, Collections: ^2.0

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.2, Symfony ~6.2.0, Twig ^3.0, Persistence: ^3.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

Check failure on line 27 in src/Component/src/Action/PlaceHolderAction.php

View workflow job for this annotation

GitHub Actions / PHP 8.1, Symfony ~6.0.0, Twig ^3.0, Persistence: ^3.0, Collections: ^1.8

Class Sylius\Component\Resource\Action\PlaceHolderAction not found.

0 comments on commit 1a3c7b6

Please sign in to comment.