Skip to content

Commit

Permalink
fix and rename listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
arti0090 committed Apr 12, 2021
1 parent 7aaf9d3 commit 71db700
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
use Sylius\Component\Resource\Exception\UnexpectedTypeException;
use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;

final class CartBlamerListener
final class ApiCartBlamerListener
{
/** @var ObjectManager */
private $cartManager;
Expand Down
2 changes: 1 addition & 1 deletion src/Sylius/Bundle/ApiBundle/Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
<tag name="sylius.uri_based_section_resolver" priority="40" />
</service>

<service id="sylius.listener.cart_blamer" class="Sylius\Bundle\ApiBundle\EventListener\CartBlamerListener">
<service id="sylius.listener.api_cart_blamer" class="Sylius\Bundle\ApiBundle\EventListener\ApiCartBlamerListener">
<argument type="service" id="sylius.manager.order" />
<argument type="service" id="sylius.context.cart" />
<argument type="service" id="sylius.section_resolver.uri_based_section_resolver" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
use Sylius\Component\Resource\Exception\UnexpectedTypeException;
use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;

final class CartBlamerListener
final class ShopCartBlamerListener
{
/** @var ObjectManager */
private $cartManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<services>
<defaults public="true" />

<service id="sylius.listener.cart_blamer" class="Sylius\Bundle\ShopBundle\EventListener\CartBlamerListener">
<service id="sylius.listener.shop_cart_blamer" class="Sylius\Bundle\ShopBundle\EventListener\ShopCartBlamerListener">
<argument type="service" id="sylius.manager.order" />
<argument type="service" id="sylius.context.cart" />
<argument type="service" id="sylius.section_resolver.uri_based_section_resolver" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;

final class CartBlamerListenerSpec extends ObjectBehavior
final class ShopCartBlamerListenerSpec extends ObjectBehavior
{
function let(
ObjectManager $cartManager,
Expand Down

0 comments on commit 71db700

Please sign in to comment.