@@ -23,7 +23,6 @@ |
||
| 23 | 23 | use Sylius\Bundle\UserBundle\Form\Type\UserRequestPasswordResetType; |
| 24 | 24 | use Sylius\Bundle\UserBundle\Form\Type\UserResetPasswordType; |
| 25 | 25 | use Sylius\Bundle\UserBundle\UserEvents; |
| 26 | -use Sylius\Component\Resource\Model\ResourceInterface; |
|
| 27 | 26 | use Sylius\Component\User\Model\UserInterface; |
| 28 | 27 | use Sylius\Component\User\Security\Generator\GeneratorInterface; |
| 29 | 28 | use Symfony\Component\EventDispatcher\GenericEvent; |
@@ -13,9 +13,7 @@ discard block |
||
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Bundle\OrderBundle\Controller; |
| 15 | 15 | |
| 16 | -use Doctrine\ORM\EntityManager; |
|
| 17 | 16 | use FOS\RestBundle\View\View; |
| 18 | -use Payum\Core\Registry\RegistryInterface; |
|
| 19 | 17 | use Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration; |
| 20 | 18 | use Sylius\Bundle\ResourceBundle\Controller\ResourceController; |
| 21 | 19 | use Sylius\Component\Core\Repository\OrderRepositoryInterface; |
@@ -25,11 +23,9 @@ discard block |
||
| 25 | 23 | use Sylius\Component\Resource\ResourceActions; |
| 26 | 24 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
| 27 | 25 | use Symfony\Component\EventDispatcher\GenericEvent; |
| 28 | -use Symfony\Component\HttpFoundation\RedirectResponse; |
|
| 29 | 26 | use Symfony\Component\HttpFoundation\Request; |
| 30 | 27 | use Symfony\Component\HttpFoundation\Response; |
| 31 | 28 | use Symfony\Component\HttpKernel\Exception\HttpException; |
| 32 | -use Webmozart\Assert\Assert; |
|
| 33 | 29 | |
| 34 | 30 | class OrderController extends ResourceController |
| 35 | 31 | { |
@@ -15,12 +15,11 @@ |
||
| 15 | 15 | |
| 16 | 16 | use Doctrine\Common\Collections\ArrayCollection; |
| 17 | 17 | use Doctrine\Common\Collections\Collection; |
| 18 | -use Sylius\Component\Attribute\Model\AttributeInterface; |
|
| 19 | -use Webmozart\Assert\Assert; |
|
| 20 | 18 | use Sylius\Component\Attribute\Model\AttributeValueInterface; |
| 21 | 19 | use Sylius\Component\Resource\Model\TimestampableTrait; |
| 22 | 20 | use Sylius\Component\Resource\Model\ToggleableTrait; |
| 23 | 21 | use Sylius\Component\Resource\Model\TranslatableTrait; |
| 22 | +use Webmozart\Assert\Assert; |
|
| 24 | 23 | |
| 25 | 24 | /** |
| 26 | 25 | * @author Paweł Jędrzejewski <[email protected]> |
@@ -21,7 +21,6 @@ |
||
| 21 | 21 | use Symfony\Component\Validator\Constraint; |
| 22 | 22 | use Symfony\Component\Validator\ConstraintValidator; |
| 23 | 23 | use Symfony\Component\Validator\Exception\ConstraintDefinitionException; |
| 24 | -use Symfony\Component\Validator\Exception\UnexpectedTypeException; |
|
| 25 | 24 | use Webmozart\Assert\Assert; |
| 26 | 25 | |
| 27 | 26 | /** |
@@ -15,7 +15,6 @@ |
||
| 15 | 15 | |
| 16 | 16 | use Payum\Core\Model\GatewayConfigInterface; |
| 17 | 17 | use PhpSpec\ObjectBehavior; |
| 18 | -use Sylius\Component\Core\Factory\PaymentMethodFactory; |
|
| 19 | 18 | use Sylius\Component\Core\Factory\PaymentMethodFactoryInterface; |
| 20 | 19 | use Sylius\Component\Core\Model\PaymentMethodInterface; |
| 21 | 20 | use Sylius\Component\Resource\Factory\FactoryInterface; |
@@ -16,10 +16,10 @@ |
||
| 16 | 16 | use Doctrine\Common\Collections\Collection; |
| 17 | 17 | use SM\Factory\FactoryInterface; |
| 18 | 18 | use SM\StateMachine\StateMachineInterface; |
| 19 | -use Sylius\Component\Order\Model\OrderInterface; |
|
| 20 | -use Sylius\Component\Order\StateResolver\StateResolverInterface; |
|
| 21 | 19 | use Sylius\Component\Core\Model\PaymentInterface; |
| 22 | 20 | use Sylius\Component\Core\OrderPaymentTransitions; |
| 21 | +use Sylius\Component\Order\Model\OrderInterface; |
|
| 22 | +use Sylius\Component\Order\StateResolver\StateResolverInterface; |
|
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | 25 | * @author Paweł Jędrzejewski <[email protected]> |