Skip to content

Commit

Permalink
Merge pull request #856 from loic425/feature/move-some-namespaces-sta…
Browse files Browse the repository at this point in the history
…te-machine

Move some namespaces on State machines
  • Loading branch information
lchrusciel authored Apr 2, 2024
2 parents 01132cb + fac9658 commit 1938ab8
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/Bundle/Resources/config/services/state.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<tag name="sylius.state_processor" />
</service>

<service id="Sylius\Component\Resource\StateMachine\State\ApplyStateMachineTransitionProcessor">
<service id="Sylius\Resource\StateMachine\State\ApplyStateMachineTransitionProcessor">
<argument type="service" id="sylius.state_machine.operation" />
<argument type="service" id="Sylius\Resource\Doctrine\Common\State\PersistProcessor" />
<tag name="sylius.state_processor" />
Expand Down
4 changes: 2 additions & 2 deletions src/Bundle/Resources/config/services/state_machine.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@

<container xmlns="http://symfony.com/schema/dic/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<services>
<service id="sylius.state_machine.operation" class="Sylius\Component\Resource\StateMachine\OperationStateMachine">
<service id="sylius.state_machine.operation" class="Sylius\Resource\StateMachine\OperationStateMachine">
<argument type="tagged_locator" tag="sylius.state_machine" index-by="key" />
</service>
<service id="Sylius\Component\Resource\StateMachine\OperationStateMachineInterface" alias="sylius.state_machine.operation" />
<service id="Sylius\Resource\StateMachine\OperationStateMachineInterface" alias="sylius.state_machine.operation" />

<service id="sylius.state_machine.operation.default" alias="sylius.state_machine.operation.winzou" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
namespace Sylius\Component\Resource\Winzou\StateMachine;

use SM\Factory\Factory;
use Sylius\Component\Resource\StateMachine\OperationStateMachineInterface;
use Sylius\Resource\Context\Context;
use Sylius\Resource\Metadata\Operation;
use Sylius\Resource\Metadata\StateMachineAwareOperationInterface;
use Sylius\Resource\StateMachine\OperationStateMachineInterface;
use Webmozart\Assert\Assert;

final class OperationStateMachine implements OperationStateMachineInterface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
namespace spec\Sylius\Resource\Metadata\Resource\Factory;

use PhpSpec\ObjectBehavior;
use Sylius\Component\Resource\StateMachine\State\ApplyStateMachineTransitionProcessor;
use Sylius\Resource\Metadata\Create;
use Sylius\Resource\Metadata\MetadataInterface;
use Sylius\Resource\Metadata\Operations;
Expand All @@ -23,6 +22,7 @@
use Sylius\Resource\Metadata\Resource\Factory\StateMachineResourceMetadataCollectionFactory;
use Sylius\Resource\Metadata\Resource\ResourceMetadataCollection;
use Sylius\Resource\Metadata\ResourceMetadata;
use Sylius\Resource\StateMachine\State\ApplyStateMachineTransitionProcessor;

final class StateMachineResourceMetadataCollectionFactorySpec extends ObjectBehavior
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@

declare(strict_types=1);

namespace spec\Sylius\Component\Resource\StateMachine;
namespace spec\Sylius\Resource\StateMachine;

use PhpSpec\ObjectBehavior;
use Psr\Container\ContainerInterface;
use Sylius\Component\Resource\StateMachine\OperationStateMachine;
use Sylius\Component\Resource\StateMachine\OperationStateMachineInterface;
use Sylius\Resource\Context\Context;
use Sylius\Resource\Metadata\Create;
use Sylius\Resource\Metadata\Index;
use Sylius\Resource\Metadata\StateMachineAwareOperationInterface;
use Sylius\Resource\StateMachine\OperationStateMachine;
use Sylius\Resource\StateMachine\OperationStateMachineInterface;

final class OperationStateMachineSpec extends ObjectBehavior
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@

declare(strict_types=1);

namespace spec\Sylius\Component\Resource\StateMachine\State;
namespace spec\Sylius\Resource\StateMachine\State;

use PhpSpec\ObjectBehavior;
use Sylius\Component\Resource\StateMachine\OperationStateMachineInterface;
use Sylius\Component\Resource\StateMachine\State\ApplyStateMachineTransitionProcessor;
use Sylius\Resource\Context\Context;
use Sylius\Resource\Metadata\Create;
use Sylius\Resource\State\ProcessorInterface;
use Sylius\Resource\StateMachine\OperationStateMachineInterface;
use Sylius\Resource\StateMachine\State\ApplyStateMachineTransitionProcessor;

final class ApplyStateMachineTransitionProcessorSpec extends ObjectBehavior
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@

namespace Sylius\Resource\Metadata\Resource\Factory;

use Sylius\Component\Resource\StateMachine\State\ApplyStateMachineTransitionProcessor;
use Sylius\Resource\Metadata\MetadataInterface;
use Sylius\Resource\Metadata\Operation;
use Sylius\Resource\Metadata\Operations;
use Sylius\Resource\Metadata\RegistryInterface;
use Sylius\Resource\Metadata\Resource\ResourceMetadataCollection;
use Sylius\Resource\Metadata\ResourceMetadata;
use Sylius\Resource\Metadata\StateMachineAwareOperationInterface;
use Sylius\Resource\StateMachine\State\ApplyStateMachineTransitionProcessor;

final class StateMachineResourceMetadataCollectionFactory implements ResourceMetadataCollectionFactoryInterface
{
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\StateMachine;
namespace Sylius\Resource\StateMachine;

use Psr\Container\ContainerInterface;
use Sylius\Resource\Context\Context;
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\StateMachine;
namespace Sylius\Resource\StateMachine;

use Sylius\Resource\Context\Context;
use Sylius\Resource\Metadata\Operation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@

declare(strict_types=1);

namespace Sylius\Component\Resource\StateMachine\State;
namespace Sylius\Resource\StateMachine\State;

use Sylius\Component\Resource\StateMachine\OperationStateMachineInterface;
use Sylius\Resource\Context\Context;
use Sylius\Resource\Metadata\Operation;
use Sylius\Resource\State\ProcessorInterface;
use Sylius\Resource\StateMachine\OperationStateMachineInterface;

final class ApplyStateMachineTransitionProcessor implements ProcessorInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@

namespace Sylius\Resource\Symfony\Workflow;

use Sylius\Component\Resource\StateMachine\OperationStateMachineInterface;
use Sylius\Resource\Context\Context;
use Sylius\Resource\Metadata\Operation;
use Sylius\Resource\Metadata\StateMachineAwareOperationInterface;
use Sylius\Resource\StateMachine\OperationStateMachineInterface;
use Symfony\Component\Workflow\Registry;
use Webmozart\Assert\Assert;

Expand Down

0 comments on commit 1938ab8

Please sign in to comment.