Skip to content

Commit

Permalink
Minor changes after CR
Browse files Browse the repository at this point in the history
  • Loading branch information
mpysiak committed Jan 2, 2025
1 parent 76e202c commit 1ebe44f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace Sylius\Bundle\OrderBundle\Controller;

use FOS\RestBundle\View\View;
use Sylius\Bundle\OrderBundle\ChangesResetter\CartChangesResetterInterface;
use Sylius\Bundle\OrderBundle\Resetter\CartChangesResetterInterface;
use Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration;
use Sylius\Bundle\ResourceBundle\Controller\ResourceController;
use Sylius\Component\Order\Context\CartContextInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

declare(strict_types=1);

namespace Sylius\Bundle\OrderBundle\ChangesResetter;
namespace Sylius\Bundle\OrderBundle\Resetter;

use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\UnitOfWork;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

declare(strict_types=1);

namespace Sylius\Bundle\OrderBundle\ChangesResetter;
namespace Sylius\Bundle\OrderBundle\Resetter;

use Sylius\Component\Order\Model\OrderInterface;

Expand Down
4 changes: 2 additions & 2 deletions src/Sylius/Bundle/OrderBundle/Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@

<service id="sylius.factory.add_to_cart_command" class="Sylius\Bundle\OrderBundle\Factory\AddToCartCommandFactory" />

<service id="sylius.cart_changes_resetter" class="Sylius\Bundle\OrderBundle\ChangesResetter\CartChangesResetter">
<service id="sylius.resetter.cart_changes" class="Sylius\Bundle\OrderBundle\Resetter\CartChangesResetter">
<argument type="service" id="sylius.manager.order" />
</service>
<service id="Sylius\Bundle\OrderBundle\ChangesResetter\CartChangesResetterInterface" alias="sylius.cart_changes_resetter" />
<service id="Sylius\Bundle\OrderBundle\ChangesResetter\CartChangesResetterInterface" alias="sylius.resetter.cart_changes" />
</services>
</container>
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\UnitOfWork;
use PhpSpec\ObjectBehavior;
use Sylius\Bundle\OrderBundle\ChangesResetter\CartChangesResetter;
use Sylius\Bundle\OrderBundle\Resetter\CartChangesResetter;
use Sylius\Component\Order\Model\OrderInterface;
use Sylius\Component\Order\Model\OrderItemInterface;
use Sylius\Component\Order\Model\OrderItemUnitInterface;
Expand Down Expand Up @@ -71,6 +71,4 @@ function it_resets_changes_for_cart_items_and_units(

$this->resetChanges($cart);
}


}

0 comments on commit 1ebe44f

Please sign in to comment.