Skip to content

Commit

Permalink
Move some namespaces on Symfony event listener
Browse files Browse the repository at this point in the history
  • Loading branch information
loic425 committed Nov 7, 2023
1 parent 08b7ee1 commit 2fa3b40
Show file tree
Hide file tree
Showing 21 changed files with 40 additions and 40 deletions.
20 changes: 10 additions & 10 deletions src/Bundle/Resources/config/services/listener.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,66 +15,66 @@
<services>
<service id="sylius.negotiator" class="Negotiation\Negotiator" />

<service id="sylius.listener.add_format" class="Sylius\Component\Resource\Symfony\EventListener\AddFormatListener">
<service id="sylius.listener.add_format" class="Sylius\Resource\Symfony\EventListener\AddFormatListener">
<argument type="service" id="sylius.resource_metadata_operation.initiator.http_operation" />
<argument type="service" id="sylius.negotiator" />
<tag name="kernel.event_listener" event="kernel.request" priority="28" />
</service>

<service id="sylius.listener.read" class="Sylius\Component\Resource\Symfony\EventListener\ReadListener">
<service id="sylius.listener.read" class="Sylius\Resource\Symfony\EventListener\ReadListener">
<argument type="service" id="sylius.resource_metadata_operation.initiator.http_operation" />
<argument type="service" id="sylius.context.initiator.request_context" />
<argument type="service" id="sylius.state.provider" />
<tag name="kernel.event_listener" event="kernel.request" priority="4" />
</service>

<service id="sylius.listener.factory" class="Sylius\Component\Resource\Symfony\EventListener\FactoryListener">
<service id="sylius.listener.factory" class="Sylius\Resource\Symfony\EventListener\FactoryListener">
<argument type="service" id="sylius.resource_metadata_operation.initiator.http_operation" />
<argument type="service" id="sylius.context.initiator.request_context" />
<argument type="service" id="sylius.state.factory" />
<tag name="kernel.event_listener" event="kernel.request" priority="3" />
</service>

<service id="sylius.listener.deserialize" class="Sylius\Component\Resource\Symfony\EventListener\DeserializeListener">
<service id="sylius.listener.deserialize" class="Sylius\Resource\Symfony\EventListener\DeserializeListener">
<argument type="service" id="sylius.resource_metadata_operation.initiator.http_operation" />
<argument type="service" id="serializer" on-invalid="null" />
<tag name="kernel.event_listener" event="kernel.request" priority="2" />
</service>

<service id="sylius.listener.form" class="Sylius\Component\Resource\Symfony\EventListener\FormListener">
<service id="sylius.listener.form" class="Sylius\Resource\Symfony\EventListener\FormListener">
<argument type="service" id="sylius.resource_metadata_operation.initiator.http_operation" />
<argument type="service" id="sylius.context.initiator.request_context" />
<argument type="service" id="sylius.form.factory" />
<tag name="kernel.event_listener" event="kernel.view" priority="128" />
</service>

<service id="sylius.listener.validate" class="Sylius\Component\Resource\Symfony\EventListener\ValidateListener">
<service id="sylius.listener.validate" class="Sylius\Resource\Symfony\EventListener\ValidateListener">
<argument type="service" id="sylius.resource_metadata_operation.initiator.http_operation" />
<argument type="service" id="validator" />
<tag name="kernel.event_listener" event="kernel.view" priority="64" />
</service>

<service id="sylius.listener.write" class="Sylius\Component\Resource\Symfony\EventListener\WriteListener">
<service id="sylius.listener.write" class="Sylius\Resource\Symfony\EventListener\WriteListener">
<argument type="service" id="sylius.resource_metadata_operation.initiator.http_operation" />
<argument type="service" id="sylius.context.initiator.request_context" />
<argument type="service" id="sylius.state.processor" />
<tag name="kernel.event_listener" event="kernel.view" priority="32" />
</service>

<service id="sylius.listener.serialize" class="Sylius\Component\Resource\Symfony\EventListener\SerializeListener">
<service id="sylius.listener.serialize" class="Sylius\Resource\Symfony\EventListener\SerializeListener">
<argument type="service" id="sylius.resource_metadata_operation.initiator.http_operation" />
<argument type="service" id="serializer" on-invalid="null" />
<tag name="kernel.event_listener" event="kernel.view" priority="16" />
</service>

<service id="sylius.listener.flash" class="Sylius\Component\Resource\Symfony\EventListener\FlashListener">
<service id="sylius.listener.flash" class="Sylius\Resource\Symfony\EventListener\FlashListener">
<argument type="service" id="sylius.resource_metadata_operation.initiator.http_operation" />
<argument type="service" id="sylius.context.initiator.request_context" />
<argument type="service" id="sylius.helper.flash" />
<tag name="kernel.event_listener" event="kernel.view" priority="16" />
</service>

<service id="sylius.listener.respond" class="Sylius\Component\Resource\Symfony\EventListener\RespondListener">
<service id="sylius.listener.respond" class="Sylius\Resource\Symfony\EventListener\RespondListener">
<argument type="service" id="sylius.resource_metadata_operation.initiator.http_operation" />
<argument type="service" id="sylius.context.initiator.request_context" />
<argument type="service" id="sylius.state.responder" />
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\Symfony\EventListener;
namespace Sylius\Resource\Symfony\EventListener;

use Negotiation\BaseAccept;
use Negotiation\Negotiator;
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\Symfony\EventListener;
namespace Sylius\Resource\Symfony\EventListener;

use Sylius\Component\Resource\Metadata\DeleteOperationInterface;
use Sylius\Component\Resource\Metadata\Operation\HttpOperationInitiatorInterface;
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\Symfony\EventListener;
namespace Sylius\Resource\Symfony\EventListener;

use Sylius\Component\Resource\Metadata\FactoryAwareOperationInterface;
use Sylius\Component\Resource\Metadata\Operation;
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\Symfony\EventListener;
namespace Sylius\Resource\Symfony\EventListener;

use Sylius\Component\Resource\Metadata\Operation\HttpOperationInitiatorInterface;
use Sylius\Component\Resource\Symfony\Session\Flash\FlashHelperInterface;
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\Symfony\EventListener;
namespace Sylius\Resource\Symfony\EventListener;

use Sylius\Component\Resource\Metadata\BulkOperationInterface;
use Sylius\Component\Resource\Metadata\CreateOperationInterface;
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\Symfony\EventListener;
namespace Sylius\Resource\Symfony\EventListener;

use Sylius\Component\Resource\Metadata\CreateOperationInterface;
use Sylius\Component\Resource\Metadata\Operation\HttpOperationInitiatorInterface;
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\Symfony\EventListener;
namespace Sylius\Resource\Symfony\EventListener;

use Sylius\Component\Resource\Metadata\Operation\HttpOperationInitiatorInterface;
use Sylius\Resource\Context\Initiator\RequestContextInitiatorInterface;
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\Symfony\EventListener;
namespace Sylius\Resource\Symfony\EventListener;

use Sylius\Component\Resource\Metadata\Operation\HttpOperationInitiatorInterface;
use Symfony\Component\HttpKernel\Event\ViewEvent;
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\Symfony\EventListener;
namespace Sylius\Resource\Symfony\EventListener;

use Sylius\Component\Resource\Metadata\CreateOperationInterface;
use Sylius\Component\Resource\Metadata\Operation\HttpOperationInitiatorInterface;
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\Symfony\EventListener;
namespace Sylius\Resource\Symfony\EventListener;

use Sylius\Component\Resource\Metadata\Operation\HttpOperationInitiatorInterface;
use Sylius\Resource\Context\Initiator\RequestContextInitiatorInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@

declare(strict_types=1);

namespace spec\Sylius\Component\Resource\Symfony\EventListener;
namespace spec\Sylius\Resource\Symfony\EventListener;

use Negotiation\Negotiator;
use PhpSpec\ObjectBehavior;
use Sylius\Component\Resource\Metadata\HttpOperation;
use Sylius\Component\Resource\Metadata\Operation\HttpOperationInitiatorInterface;
use Sylius\Component\Resource\Symfony\EventListener\AddFormatListener;
use Sylius\Resource\Symfony\EventListener\AddFormatListener;
use Symfony\Component\HttpFoundation\ParameterBag;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Event\RequestEvent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@

declare(strict_types=1);

namespace spec\Sylius\Component\Resource\Symfony\EventListener;
namespace spec\Sylius\Resource\Symfony\EventListener;

use PhpSpec\ObjectBehavior;
use Sylius\Component\Resource\Metadata\HttpOperation;
use Sylius\Component\Resource\Metadata\Operation\HttpOperationInitiatorInterface;
use Sylius\Component\Resource\Metadata\ResourceMetadata;
use Sylius\Component\Resource\Symfony\EventListener\DeserializeListener;
use Sylius\Resource\Symfony\EventListener\DeserializeListener;
use Symfony\Component\HttpFoundation\ParameterBag;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Event\RequestEvent;
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\Symfony\EventListener;
namespace spec\Sylius\Resource\Symfony\EventListener;

use PhpSpec\ObjectBehavior;
use Sylius\Component\Resource\Metadata\Create;
use Sylius\Component\Resource\Metadata\Operation\HttpOperationInitiatorInterface;
use Sylius\Component\Resource\Metadata\Update;
use Sylius\Component\Resource\Symfony\EventListener\FactoryListener;
use Sylius\Resource\Context\Context;
use Sylius\Resource\Context\Initiator\RequestContextInitiatorInterface;
use Sylius\Resource\State\FactoryInterface;
use Sylius\Resource\Symfony\EventListener\FactoryListener;
use Symfony\Component\HttpFoundation\ParameterBag;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Event\RequestEvent;
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\Symfony\EventListener;
namespace spec\Sylius\Resource\Symfony\EventListener;

use PhpSpec\ObjectBehavior;
use Sylius\Component\Resource\Metadata\HttpOperation;
use Sylius\Component\Resource\Metadata\Operation\HttpOperationInitiatorInterface;
use Sylius\Component\Resource\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface;
use Sylius\Component\Resource\Symfony\EventListener\FlashListener;
use Sylius\Component\Resource\Symfony\Session\Flash\FlashHelperInterface;
use Sylius\Resource\Context\Context;
use Sylius\Resource\Context\Initiator\RequestContextInitiatorInterface;
use Sylius\Resource\Symfony\EventListener\FlashListener;
use Symfony\Component\HttpFoundation\ParameterBag;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

declare(strict_types=1);

namespace spec\Sylius\Component\Resource\Symfony\EventListener;
namespace spec\Sylius\Resource\Symfony\EventListener;

use PhpSpec\ObjectBehavior;
use Sylius\Component\Resource\Metadata\BulkUpdate;
Expand All @@ -21,10 +21,10 @@
use Sylius\Component\Resource\Metadata\Operations;
use Sylius\Component\Resource\Metadata\RegistryInterface;
use Sylius\Component\Resource\Metadata\Show;
use Sylius\Component\Resource\Symfony\EventListener\FormListener;
use Sylius\Component\Resource\Symfony\Form\Factory\FormFactoryInterface;
use Sylius\Resource\Context\Context;
use Sylius\Resource\Context\Initiator\RequestContextInitiatorInterface;
use Sylius\Resource\Symfony\EventListener\FormListener;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\HttpFoundation\ParameterBag;
use Symfony\Component\HttpFoundation\Request;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@

declare(strict_types=1);

namespace spec\Sylius\Component\Resource\Symfony\EventListener;
namespace spec\Sylius\Resource\Symfony\EventListener;

use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
use Sylius\Component\Resource\Metadata\Create;
use Sylius\Component\Resource\Metadata\HttpOperation;
use Sylius\Component\Resource\Metadata\Operation\HttpOperationInitiatorInterface;
use Sylius\Component\Resource\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface;
use Sylius\Component\Resource\Symfony\EventListener\ReadListener;
use Sylius\Resource\Context\Context;
use Sylius\Resource\Context\Initiator\RequestContextInitiatorInterface;
use Sylius\Resource\State\ProviderInterface;
use Sylius\Resource\Symfony\EventListener\ReadListener;
use Symfony\Component\HttpFoundation\ParameterBag;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Event\RequestEvent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@

declare(strict_types=1);

namespace spec\Sylius\Component\Resource\Symfony\EventListener;
namespace spec\Sylius\Resource\Symfony\EventListener;

use PhpSpec\ObjectBehavior;
use Sylius\Component\Resource\Metadata\HttpOperation;
use Sylius\Component\Resource\Metadata\Operation\HttpOperationInitiatorInterface;
use Sylius\Component\Resource\Symfony\EventListener\RespondListener;
use Sylius\Resource\Context\Context;
use Sylius\Resource\Context\Initiator\RequestContextInitiatorInterface;
use Sylius\Resource\State\ResponderInterface;
use Sylius\Resource\Symfony\EventListener\RespondListener;
use Symfony\Component\HttpFoundation\ParameterBag;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@

declare(strict_types=1);

namespace spec\Sylius\Component\Resource\Symfony\EventListener;
namespace spec\Sylius\Resource\Symfony\EventListener;

use PhpSpec\ObjectBehavior;
use Sylius\Component\Resource\Metadata\HttpOperation;
use Sylius\Component\Resource\Metadata\Operation\HttpOperationInitiatorInterface;
use Sylius\Component\Resource\Symfony\EventListener\SerializeListener;
use Sylius\Resource\Symfony\EventListener\SerializeListener;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Event\ViewEvent;
use Symfony\Component\HttpKernel\HttpKernelInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

declare(strict_types=1);

namespace spec\Sylius\Component\Resource\Symfony\EventListener;
namespace spec\Sylius\Resource\Symfony\EventListener;

use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
Expand All @@ -22,7 +22,7 @@
use Sylius\Component\Resource\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface;
use Sylius\Component\Resource\Metadata\Resource\ResourceMetadataCollection;
use Sylius\Component\Resource\Metadata\ResourceMetadata;
use Sylius\Component\Resource\Symfony\EventListener\ValidateListener;
use Sylius\Resource\Symfony\EventListener\ValidateListener;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\HttpFoundation\ParameterBag;
use Symfony\Component\HttpFoundation\Request;
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\Symfony\EventListener;
namespace spec\Sylius\Resource\Symfony\EventListener;

use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
use Sylius\Component\Resource\Metadata\HttpOperation;
use Sylius\Component\Resource\Metadata\Operation\HttpOperationInitiatorInterface;
use Sylius\Component\Resource\Symfony\EventListener\WriteListener;
use Sylius\Resource\Context\Context;
use Sylius\Resource\Context\Initiator\RequestContextInitiatorInterface;
use Sylius\Resource\State\ProcessorInterface;
use Sylius\Resource\Symfony\EventListener\WriteListener;
use Symfony\Component\HttpFoundation\ParameterBag;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
Expand Down

0 comments on commit 2fa3b40

Please sign in to comment.