Skip to content

Commit

Permalink
refactor #411 [Maintenance] Move commands to proper directories (GSadee)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.0-dev branch.

Discussion
----------



Commits
-------

375911d [Maintenance] Move commands to proper directories
  • Loading branch information
lchrusciel authored Mar 25, 2019
2 parents 38d2560 + 375911d commit 3d8964d
Show file tree
Hide file tree
Showing 156 changed files with 223 additions and 223 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace spec\Sylius\ShopApiPlugin\Command;
namespace spec\Sylius\ShopApiPlugin\Command\AddressBook;

use PhpSpec\ObjectBehavior;
use Sylius\ShopApiPlugin\Model\Address;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace spec\Sylius\ShopApiPlugin\Command;
namespace spec\Sylius\ShopApiPlugin\Command\AddressBook;

use PhpSpec\ObjectBehavior;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace spec\Sylius\ShopApiPlugin\Command;
namespace spec\Sylius\ShopApiPlugin\Command\AddressBook;

use PhpSpec\ObjectBehavior;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

declare(strict_types=1);

namespace spec\Sylius\ShopApiPlugin\Command;
namespace spec\Sylius\ShopApiPlugin\Command\AddressBook;

use PhpSpec\ObjectBehavior;
use Sylius\ShopApiPlugin\Command\UpdateAddress;
use Sylius\ShopApiPlugin\Command\AddressBook\UpdateAddress;
use Sylius\ShopApiPlugin\Model\Address;

final class UpdateAddressSpec extends ObjectBehavior
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace spec\Sylius\ShopApiPlugin\Command;
namespace spec\Sylius\ShopApiPlugin\Command\Cart;

use PhpSpec\ObjectBehavior;
use TypeError;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace spec\Sylius\ShopApiPlugin\Command;
namespace spec\Sylius\ShopApiPlugin\Command\Cart;

use PhpSpec\ObjectBehavior;
use Sylius\ShopApiPlugin\Model\Address;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace spec\Sylius\ShopApiPlugin\Command;
namespace spec\Sylius\ShopApiPlugin\Command\Cart;

use InvalidArgumentException;
use PhpSpec\ObjectBehavior;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace spec\Sylius\ShopApiPlugin\Command;
namespace spec\Sylius\ShopApiPlugin\Command\Cart;

use PhpSpec\ObjectBehavior;
use TypeError;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace spec\Sylius\ShopApiPlugin\Command;
namespace spec\Sylius\ShopApiPlugin\Command\Cart;

use PhpSpec\ObjectBehavior;
use TypeError;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace spec\Sylius\ShopApiPlugin\Command;
namespace spec\Sylius\ShopApiPlugin\Command\Cart;

use PhpSpec\ObjectBehavior;
use TypeError;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace spec\Sylius\ShopApiPlugin\Command;
namespace spec\Sylius\ShopApiPlugin\Command\Cart;

use PhpSpec\ObjectBehavior;
use TypeError;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace spec\Sylius\ShopApiPlugin\Command;
namespace spec\Sylius\ShopApiPlugin\Command\Cart;

use PhpSpec\ObjectBehavior;
use TypeError;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace spec\Sylius\ShopApiPlugin\Command;
namespace spec\Sylius\ShopApiPlugin\Command\Cart;

use PhpSpec\ObjectBehavior;
use TypeError;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace spec\Sylius\ShopApiPlugin\Command;
namespace spec\Sylius\ShopApiPlugin\Command\Cart;

use PhpSpec\ObjectBehavior;
use TypeError;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace spec\Sylius\ShopApiPlugin\Command;
namespace spec\Sylius\ShopApiPlugin\Command\Cart;

use PhpSpec\ObjectBehavior;
use TypeError;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

declare(strict_types=1);

namespace spec\Sylius\ShopApiPlugin\Command;
namespace spec\Sylius\ShopApiPlugin\Command\Customer;

use PhpSpec\ObjectBehavior;
use Sylius\ShopApiPlugin\Command\GenerateResetPasswordToken;
use Sylius\ShopApiPlugin\Command\Customer\GenerateResetPasswordToken;

final class GenerateResetPasswordTokenSpec extends ObjectBehavior
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

declare(strict_types=1);

namespace spec\Sylius\ShopApiPlugin\Command;
namespace spec\Sylius\ShopApiPlugin\Command\Customer;

use PhpSpec\ObjectBehavior;
use Sylius\ShopApiPlugin\Command\GenerateVerificationToken;
use Sylius\ShopApiPlugin\Command\Customer\GenerateVerificationToken;

final class GenerateVerificationTokenSpec extends ObjectBehavior
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

declare(strict_types=1);

namespace spec\Sylius\ShopApiPlugin\Command;
namespace spec\Sylius\ShopApiPlugin\Command\Customer;

use PhpSpec\ObjectBehavior;
use Sylius\ShopApiPlugin\Command\SendResetPasswordToken;
use Sylius\ShopApiPlugin\Command\Customer\SendResetPasswordToken;

final class SendResetPasswordTokenSpec extends ObjectBehavior
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

declare(strict_types=1);

namespace spec\Sylius\ShopApiPlugin\Command;
namespace spec\Sylius\ShopApiPlugin\Command\Customer;

use PhpSpec\ObjectBehavior;
use Sylius\ShopApiPlugin\Command\SendVerificationToken;
use Sylius\ShopApiPlugin\Command\Customer\SendVerificationToken;

final class SendVerificationTokenSpec extends ObjectBehavior
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace spec\Sylius\ShopApiPlugin\Command;
namespace spec\Sylius\ShopApiPlugin\Command\Customer;

use PhpSpec\ObjectBehavior;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

declare(strict_types=1);

namespace spec\Sylius\ShopApiPlugin\Command;
namespace spec\Sylius\ShopApiPlugin\Command\Customer;

use PhpSpec\ObjectBehavior;
use Sylius\ShopApiPlugin\Command\VerifyAccount;
use Sylius\ShopApiPlugin\Command\Customer\VerifyAccount;

final class VerifyAccountSpec extends ObjectBehavior
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace spec\Sylius\ShopApiPlugin\Command;
namespace spec\Sylius\ShopApiPlugin\Command\Product;

use PhpSpec\ObjectBehavior;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace spec\Sylius\ShopApiPlugin\Command;
namespace spec\Sylius\ShopApiPlugin\Command\Product;

use PhpSpec\ObjectBehavior;

Expand Down
4 changes: 2 additions & 2 deletions spec/EventListener/UserRegistrationListenerSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
use Sylius\Component\Core\Model\ChannelInterface;
use Sylius\Component\Core\Model\ShopUserInterface;
use Sylius\Component\User\Repository\UserRepositoryInterface;
use Sylius\ShopApiPlugin\Command\GenerateVerificationToken;
use Sylius\ShopApiPlugin\Command\SendVerificationToken;
use Sylius\ShopApiPlugin\Command\Customer\GenerateVerificationToken;
use Sylius\ShopApiPlugin\Command\Customer\SendVerificationToken;
use Sylius\ShopApiPlugin\Event\CustomerRegistered;

final class UserRegistrationListenerSpec extends ObjectBehavior
Expand Down
2 changes: 1 addition & 1 deletion spec/Handler/AddressBook/CreateAddressHandlerSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Sylius\Component\Core\Model\CustomerInterface;
use Sylius\Component\Resource\Factory\FactoryInterface;
use Sylius\Component\Resource\Repository\RepositoryInterface;
use Sylius\ShopApiPlugin\Command\CreateAddress;
use Sylius\ShopApiPlugin\Command\AddressBook\CreateAddress;
use Sylius\ShopApiPlugin\Model\Address;

final class CreateAddressHandlerSpec extends ObjectBehavior
Expand Down
2 changes: 1 addition & 1 deletion spec/Handler/AddressBook/RemoveAddressHandlerSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Sylius\Component\Core\Model\AddressInterface;
use Sylius\Component\Core\Repository\AddressRepositoryInterface;
use Sylius\Component\Core\Repository\OrderRepositoryInterface;
use Sylius\ShopApiPlugin\Command\RemoveAddress;
use Sylius\ShopApiPlugin\Command\AddressBook\RemoveAddress;

final class RemoveAddressHandlerSpec extends ObjectBehavior
{
Expand Down
2 changes: 1 addition & 1 deletion spec/Handler/AddressBook/SetDefaultAddressHandlerSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Sylius\Component\Core\Repository\AddressRepositoryInterface;
use Sylius\Component\Core\Repository\CustomerRepositoryInterface;
use Sylius\Component\Resource\Repository\RepositoryInterface;
use Sylius\ShopApiPlugin\Command\SetDefaultAddress;
use Sylius\ShopApiPlugin\Command\AddressBook\SetDefaultAddress;

final class SetDefaultAddressHandlerSpec extends ObjectBehavior
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Sylius\Component\Core\Model\ShopUserInterface;
use Sylius\Component\Resource\Factory\FactoryInterface;
use Sylius\Component\Resource\Repository\RepositoryInterface;
use Sylius\ShopApiPlugin\Command\UpdateAddress;
use Sylius\ShopApiPlugin\Command\AddressBook\UpdateAddress;
use Sylius\ShopApiPlugin\Model\Address;

final class UpdateAddressBookAddressHandlerSpec extends ObjectBehavior
Expand Down
2 changes: 1 addition & 1 deletion spec/Handler/Cart/AddCouponHandlerSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Sylius\Component\Promotion\Checker\Eligibility\PromotionCouponEligibilityCheckerInterface;
use Sylius\Component\Promotion\Checker\Eligibility\PromotionEligibilityCheckerInterface;
use Sylius\Component\Promotion\Repository\PromotionCouponRepositoryInterface;
use Sylius\ShopApiPlugin\Command\AddCoupon;
use Sylius\ShopApiPlugin\Command\Cart\AddCoupon;

final class AddCouponHandlerSpec extends ObjectBehavior
{
Expand Down
2 changes: 1 addition & 1 deletion spec/Handler/Cart/AddressOrderHandlerSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Sylius\Component\Core\Model\OrderInterface;
use Sylius\Component\Core\OrderCheckoutTransitions;
use Sylius\Component\Core\Repository\OrderRepositoryInterface;
use Sylius\ShopApiPlugin\Command\AddressOrder as AddressShipmentCommand;
use Sylius\ShopApiPlugin\Command\Cart\AddressOrder as AddressShipmentCommand;
use Sylius\ShopApiPlugin\Model\Address;

final class AddressOrderHandlerSpec extends ObjectBehavior
Expand Down
2 changes: 1 addition & 1 deletion spec/Handler/Cart/ChangeItemQuantityHandlerSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface;
use Sylius\Component\Order\Processor\OrderProcessorInterface;
use Sylius\Component\Order\Repository\OrderItemRepositoryInterface;
use Sylius\ShopApiPlugin\Command\ChangeItemQuantity;
use Sylius\ShopApiPlugin\Command\Cart\ChangeItemQuantity;

final class ChangeItemQuantityHandlerSpec extends ObjectBehavior
{
Expand Down
2 changes: 1 addition & 1 deletion spec/Handler/Cart/ChoosePaymentMethodHandlerSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use Sylius\Component\Core\OrderCheckoutTransitions;
use Sylius\Component\Core\Repository\OrderRepositoryInterface;
use Sylius\Component\Core\Repository\PaymentMethodRepositoryInterface;
use Sylius\ShopApiPlugin\Command\ChoosePaymentMethod;
use Sylius\ShopApiPlugin\Command\Cart\ChoosePaymentMethod;

final class ChoosePaymentMethodHandlerSpec extends ObjectBehavior
{
Expand Down
2 changes: 1 addition & 1 deletion spec/Handler/Cart/ChooseShippingMethodHandlerSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Sylius\Component\Core\Repository\OrderRepositoryInterface;
use Sylius\Component\Core\Repository\ShippingMethodRepositoryInterface;
use Sylius\Component\Shipping\Checker\ShippingMethodEligibilityCheckerInterface;
use Sylius\ShopApiPlugin\Command\ChooseShippingMethod;
use Sylius\ShopApiPlugin\Command\Cart\ChooseShippingMethod;

final class ChooseShippingMethodHandlerSpec extends ObjectBehavior
{
Expand Down
2 changes: 1 addition & 1 deletion spec/Handler/Cart/CompleteOrderHandlerSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Sylius\Component\Core\Model\OrderInterface;
use Sylius\Component\Core\OrderCheckoutTransitions;
use Sylius\Component\Core\Repository\OrderRepositoryInterface;
use Sylius\ShopApiPlugin\Command\CompleteOrder;
use Sylius\ShopApiPlugin\Command\Cart\CompleteOrder;
use Sylius\ShopApiPlugin\Provider\CustomerProviderInterface;

final class CompleteOrderHandlerSpec extends ObjectBehavior
Expand Down
2 changes: 1 addition & 1 deletion spec/Handler/Cart/DropCartHandlerSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use PhpSpec\ObjectBehavior;
use Sylius\Component\Core\Model\OrderInterface;
use Sylius\Component\Core\Repository\OrderRepositoryInterface;
use Sylius\ShopApiPlugin\Command\DropCart;
use Sylius\ShopApiPlugin\Command\Cart\DropCart;

final class DropCartHandlerSpec extends ObjectBehavior
{
Expand Down
2 changes: 1 addition & 1 deletion spec/Handler/Cart/PickupCartHandlerSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Sylius\Component\Currency\Model\CurrencyInterface;
use Sylius\Component\Locale\Model\LocaleInterface;
use Sylius\Component\Resource\Factory\FactoryInterface;
use Sylius\ShopApiPlugin\Command\PickupCart;
use Sylius\ShopApiPlugin\Command\Cart\PickupCart;
use Sylius\ShopApiPlugin\Handler\Cart\PickupCartHandler;

final class PickupCartHandlerSpec extends ObjectBehavior
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use Sylius\Component\Core\Repository\OrderRepositoryInterface;
use Sylius\Component\Core\Repository\ProductRepositoryInterface;
use Sylius\Component\Product\Model\ProductOptionValueInterface;
use Sylius\ShopApiPlugin\Command\PutOptionBasedConfigurableItemToCart;
use Sylius\ShopApiPlugin\Command\Cart\PutOptionBasedConfigurableItemToCart;
use Sylius\ShopApiPlugin\Modifier\OrderModifierInterface;

final class PutOptionBasedConfigurableItemToCartHandlerSpec extends ObjectBehavior
Expand Down
2 changes: 1 addition & 1 deletion spec/Handler/Cart/PutSimpleItemToCartHandlerSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Sylius\Component\Core\Model\ProductVariantInterface;
use Sylius\Component\Core\Repository\OrderRepositoryInterface;
use Sylius\Component\Core\Repository\ProductRepositoryInterface;
use Sylius\ShopApiPlugin\Command\PutSimpleItemToCart;
use Sylius\ShopApiPlugin\Command\Cart\PutSimpleItemToCart;
use Sylius\ShopApiPlugin\Modifier\OrderModifierInterface;

final class PutSimpleItemToCartHandlerSpec extends ObjectBehavior
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Sylius\Component\Core\Model\ProductVariantInterface;
use Sylius\Component\Core\Repository\OrderRepositoryInterface;
use Sylius\Component\Core\Repository\ProductVariantRepositoryInterface;
use Sylius\ShopApiPlugin\Command\PutVariantBasedConfigurableItemToCart;
use Sylius\ShopApiPlugin\Command\Cart\PutVariantBasedConfigurableItemToCart;
use Sylius\ShopApiPlugin\Modifier\OrderModifierInterface;

final class PutVariantBasedConfigurableItemToCartHandlerSpec extends ObjectBehavior
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Sylius\Component\Core\Model\ShopUserInterface;
use Sylius\Component\User\Repository\UserRepositoryInterface;
use Sylius\Component\User\Security\Generator\GeneratorInterface;
use Sylius\ShopApiPlugin\Command\GenerateResetPasswordToken;
use Sylius\ShopApiPlugin\Command\Customer\GenerateResetPasswordToken;
use Sylius\ShopApiPlugin\Handler\Customer\GenerateResetPasswordTokenHandler;

final class GenerateResetPasswordTokenHandlerSpec extends ObjectBehavior
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Sylius\Component\Core\Model\ShopUserInterface;
use Sylius\Component\User\Repository\UserRepositoryInterface;
use Sylius\Component\User\Security\Generator\GeneratorInterface;
use Sylius\ShopApiPlugin\Command\GenerateVerificationToken;
use Sylius\ShopApiPlugin\Command\Customer\GenerateVerificationToken;
use Sylius\ShopApiPlugin\Handler\Customer\GenerateVerificationTokenHandler;

final class GenerateVerificationTokenHandlerSpec extends ObjectBehavior
Expand Down
Loading

0 comments on commit 3d8964d

Please sign in to comment.