Sylius / ShopApiPlugin

Shop API for Sylius.
https://sylius.com
130 stars 89 forks source link

Cart Blamer service name #639

Open arnaudroulee opened 4 years ago

arnaudroulee commented 4 years ago

Service 'sylius.listener.cart_blamer' replace cart blamer of SyliusCoreBundle, so it removes events 'sylius.user.security.implicit_login' and 'security.interactive_login'.

<service id="sylius.listener.cart_blamer" class="Sylius\Bundle\CoreBundle\EventListener\CartBlamerListener">
    <argument type="service" id="sylius.manager.order" />
    <argument type="service" id="sylius.context.cart" />
    <tag name="kernel.event_listener" event="sylius.user.security.implicit_login" method="onImplicitLogin" />
    <tag name="kernel.event_listener" event="security.interactive_login" method="onInteractiveLogin" />
</service>

If we use Sylius has a standard shop with both SyliusShopBundle (main shop) and ShopApiPlugin (external call from landing pages for example), it breaks EventListener of SyliusShopBundle.

Each CartBlamer should work together.

mamazu commented 4 years ago

That's a known problem and the reason why the documentation says that the two modules are not working together.