Skip to content

Commit

Permalink
Merge pull request #8777 from GSadee/fix-disabling-shop-bundle
Browse files Browse the repository at this point in the history
Move user impersonated listener to shop bundle
  • Loading branch information
pamil committed Oct 10, 2017
2 parents af758d6 + c2a2a18 commit aefbf49
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,5 @@
<argument type="service" id="sylius.product_variant_resolver.default" />
<tag name="kernel.event_listener" event="sylius.product.initialize_update" method="lock" />
</service>

<service id="sylius.listener.user_impersonated" class="Sylius\Bundle\CoreBundle\EventListener\UserImpersonatedListener">
<argument type="service" id="sylius.storage.cart_session" />
<argument type="service" id="sylius.context.channel.cached" />
<argument type="service" id="sylius.repository.order" />
<tag name="kernel.event_listener" event="sylius.user.security.impersonate" method="onUserImpersonated" />
</service>
</services>
</container>
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

declare(strict_types=1);

namespace Sylius\Bundle\CoreBundle\EventListener;
namespace Sylius\Bundle\ShopBundle\EventListener;

use Sylius\Bundle\UserBundle\Event\UserEvent;
use Sylius\Component\Channel\Context\ChannelContextInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,12 @@
<argument type="service" id="sylius.storage.cart_session" />
<tag name="kernel.event_subscriber" />
</service>

<service id="sylius.listener.user_impersonated" class="Sylius\Bundle\ShopBundle\EventListener\UserImpersonatedListener">
<argument type="service" id="sylius.storage.cart_session" />
<argument type="service" id="sylius.context.channel.cached" />
<argument type="service" id="sylius.repository.order" />
<tag name="kernel.event_listener" event="sylius.user.security.impersonate" method="onUserImpersonated" />
</service>
</services>
</container>
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

declare(strict_types=1);

namespace spec\Sylius\Bundle\CoreBundle\EventListener;
namespace spec\Sylius\Bundle\ShopBundle\EventListener;

use PhpSpec\ObjectBehavior;
use Sylius\Bundle\UserBundle\Event\UserEvent;
Expand Down

0 comments on commit aefbf49

Please sign in to comment.