Skip to content

Commit

Permalink
refactor #758 Remove Component namespace on action (loic425)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.11 branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | 
| License         | MIT


Commits
-------

40f0e34 Remove Component namespace on action
  • Loading branch information
lchrusciel authored Oct 24, 2023
2 parents b0646fe + 40f0e34 commit ca05fca
Show file tree
Hide file tree
Showing 5 changed files with 7 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 Down

0 comments on commit ca05fca

Please sign in to comment.