@@ -15,7 +15,6 @@ |
||
15 | 15 | use Sylius\Component\Core\Model\AddressInterface; |
16 | 16 | use Sylius\Component\Core\Model\ProductInterface; |
17 | 17 | use Sylius\Component\Core\Model\ShippingMethodInterface; |
18 | -use Sylius\Component\Payment\Model\PaymentMethodInterface; |
|
19 | 18 | |
20 | 19 | /** |
21 | 20 | * @author Mateusz Zalewski <[email protected]> |
@@ -12,10 +12,10 @@ |
||
12 | 12 | namespace Sylius\Bundle\ApiBundle\Controller; |
13 | 13 | |
14 | 14 | use FOS\RestBundle\Decoder\DecoderProviderInterface; |
15 | -use Symfony\Component\HttpFoundation\Request; |
|
16 | -use Symfony\Component\HttpFoundation\ParameterBag; |
|
17 | 15 | use OAuth2\OAuth2; |
18 | 16 | use OAuth2\OAuth2ServerException; |
17 | +use Symfony\Component\HttpFoundation\ParameterBag; |
|
18 | +use Symfony\Component\HttpFoundation\Request; |
|
19 | 19 | use Symfony\Component\HttpFoundation\Response; |
20 | 20 | use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; |
21 | 21 |
@@ -13,12 +13,11 @@ |
||
13 | 13 | |
14 | 14 | use Doctrine\Common\Collections\ArrayCollection; |
15 | 15 | use Doctrine\Common\Collections\Collection; |
16 | -use Webmozart\Assert\Assert; |
|
17 | 16 | use Sylius\Component\Attribute\Model\AttributeValueInterface; |
18 | 17 | use Sylius\Component\Resource\Model\TimestampableTrait; |
19 | 18 | use Sylius\Component\Resource\Model\ToggleableTrait; |
20 | 19 | use Sylius\Component\Resource\Model\TranslatableTrait; |
21 | -use Sylius\Component\Resource\Model\TranslationInterface; |
|
20 | +use Webmozart\Assert\Assert; |
|
22 | 21 | |
23 | 22 | /** |
24 | 23 | * @author Paweł Jędrzejewski <[email protected]> |
@@ -14,8 +14,8 @@ |
||
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | 15 | use Prophecy\Argument; |
16 | 16 | use Sylius\Bundle\ApiBundle\Form\EventSubscriber\AddUserFormSubscriber; |
17 | -use Sylius\Component\User\Model\UserInterface; |
|
18 | 17 | use Sylius\Component\User\Model\UserAwareInterface; |
18 | +use Sylius\Component\User\Model\UserInterface; |
|
19 | 19 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
20 | 20 | use Symfony\Component\Form\Form; |
21 | 21 | use Symfony\Component\Form\FormEvent; |
@@ -11,9 +11,9 @@ |
||
11 | 11 | |
12 | 12 | namespace Sylius\Bundle\ReviewBundle\EventListener; |
13 | 13 | |
14 | +use Sylius\Component\Customer\Context\CustomerContextInterface; |
|
14 | 15 | use Sylius\Component\Resource\Exception\UnexpectedTypeException; |
15 | 16 | use Sylius\Component\Review\Model\ReviewInterface; |
16 | -use Sylius\Component\Customer\Context\CustomerContextInterface; |
|
17 | 17 | use Symfony\Component\EventDispatcher\GenericEvent; |
18 | 18 | |
19 | 19 | /** |
@@ -21,8 +21,6 @@ |
||
21 | 21 | use Sylius\Component\Core\Model\CustomerInterface; |
22 | 22 | use Sylius\Component\Core\Model\ShopUserInterface; |
23 | 23 | use Sylius\Component\Mailer\Sender\SenderInterface; |
24 | -use Sylius\Component\Resource\Exception\UnexpectedTypeException; |
|
25 | -use Sylius\Component\User\Model\UserInterface; |
|
26 | 24 | use Symfony\Component\EventDispatcher\GenericEvent; |
27 | 25 | |
28 | 26 | /** |
@@ -4,9 +4,9 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\Persistence\ObjectManager; |
6 | 6 | use PhpSpec\ObjectBehavior; |
7 | -use Sylius\Component\Addressing\Factory\ZoneFactoryInterface; |
|
8 | 7 | use Sylius\Bundle\CoreBundle\Fixture\GeographicalFixture; |
9 | 8 | use Sylius\Bundle\FixturesBundle\Fixture\FixtureInterface; |
9 | +use Sylius\Component\Addressing\Factory\ZoneFactoryInterface; |
|
10 | 10 | use Sylius\Component\Addressing\Model\CountryInterface; |
11 | 11 | use Sylius\Component\Addressing\Model\ProvinceInterface; |
12 | 12 | use Sylius\Component\Addressing\Model\ZoneInterface; |
@@ -16,8 +16,8 @@ |
||
16 | 16 | use PhpSpec\ObjectBehavior; |
17 | 17 | use Sylius\Bundle\CoreBundle\Form\DataTransformer\ProductsToCodesTransformer; |
18 | 18 | use Sylius\Component\Core\Model\ProductInterface; |
19 | -use Sylius\Component\Resource\Exception\UnexpectedTypeException; |
|
20 | 19 | use Sylius\Component\Core\Repository\ProductRepositoryInterface; |
20 | +use Sylius\Component\Resource\Exception\UnexpectedTypeException; |
|
21 | 21 | use Symfony\Component\Form\DataTransformerInterface; |
22 | 22 | |
23 | 23 | /** |
@@ -14,8 +14,8 @@ |
||
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | 15 | use Prophecy\Argument; |
16 | 16 | use Sylius\Bundle\CoreBundle\Form\EventSubscriber\AddUserFormSubscriber; |
17 | -use Sylius\Component\User\Model\UserInterface; |
|
18 | 17 | use Sylius\Component\User\Model\UserAwareInterface; |
18 | +use Sylius\Component\User\Model\UserInterface; |
|
19 | 19 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
20 | 20 | use Symfony\Component\Form\Form; |
21 | 21 | use Symfony\Component\Form\FormEvent; |