@@ -30,7 +30,6 @@ |
||
30 | 30 | use Sylius\Component\Product\Model\OptionValueTranslationInterface; |
31 | 31 | use Sylius\Component\Product\Model\Variant; |
32 | 32 | use Sylius\Component\Product\Model\VariantInterface; |
33 | -use Sylius\Component\Resource\Factory; |
|
34 | 33 | use Symfony\Component\Config\FileLocator; |
35 | 34 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
36 | 35 | use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface; |
@@ -16,11 +16,9 @@ |
||
16 | 16 | use Sylius\Bundle\PromotionBundle\Form\EventListener\BuildActionFormSubscriber; |
17 | 17 | use Sylius\Bundle\PromotionBundle\Form\Type\ActionType; |
18 | 18 | use Sylius\Bundle\PromotionBundle\Form\Type\Core\AbstractConfigurationType; |
19 | -use Sylius\Component\Promotion\Model\ActionInterface; |
|
20 | 19 | use Sylius\Component\Registry\ServiceRegistryInterface; |
21 | 20 | use Symfony\Component\Form\FormBuilder; |
22 | 21 | use Symfony\Component\Form\FormFactoryInterface; |
23 | -use Symfony\Component\OptionsResolver\OptionsResolver; |
|
24 | 22 | |
25 | 23 | /** |
26 | 24 | * @author Saša Stamenković <[email protected]> |
@@ -14,8 +14,8 @@ |
||
14 | 14 | use Doctrine\ORM\AbstractQuery; |
15 | 15 | use Doctrine\ORM\EntityManager; |
16 | 16 | use Doctrine\ORM\Mapping\ClassMetadata; |
17 | -use Doctrine\ORM\Query\Expr; |
|
18 | 17 | use Doctrine\ORM\QueryBuilder; |
18 | +use Doctrine\ORM\Query\Expr; |
|
19 | 19 | use PhpSpec\ObjectBehavior; |
20 | 20 | use Prophecy\Argument; |
21 | 21 | use Sylius\Component\Rbac\Model\PermissionInterface; |
@@ -14,8 +14,8 @@ |
||
14 | 14 | use Doctrine\ORM\AbstractQuery; |
15 | 15 | use Doctrine\ORM\EntityManager; |
16 | 16 | use Doctrine\ORM\Mapping\ClassMetadata; |
17 | -use Doctrine\ORM\Query\Expr; |
|
18 | 17 | use Doctrine\ORM\QueryBuilder; |
18 | +use Doctrine\ORM\Query\Expr; |
|
19 | 19 | use PhpSpec\ObjectBehavior; |
20 | 20 | use Prophecy\Argument; |
21 | 21 | use Sylius\Component\Rbac\Model\RoleInterface; |
@@ -12,9 +12,9 @@ |
||
12 | 12 | namespace Sylius\Bundle\ResourceBundle\Behat; |
13 | 13 | |
14 | 14 | use Behat\Behat\Context\Context; |
15 | +use Behat\MinkExtension\Context\RawMinkContext; |
|
15 | 16 | use Behat\Mink\Element\NodeElement; |
16 | 17 | use Behat\Mink\Exception\ElementNotFoundException; |
17 | -use Behat\MinkExtension\Context\RawMinkContext; |
|
18 | 18 | use Behat\Symfony2Extension\Context\KernelAwareContext; |
19 | 19 | use Doctrine\Common\Persistence\ObjectManager; |
20 | 20 | use Faker\Factory as FakerFactory; |
@@ -11,11 +11,11 @@ |
||
11 | 11 | |
12 | 12 | namespace Sylius\Bundle\ResourceBundle\Behat; |
13 | 13 | |
14 | +use Behat\MinkExtension\Context\RawMinkContext; |
|
14 | 15 | use Behat\Mink\Element\Element; |
15 | 16 | use Behat\Mink\Element\NodeElement; |
16 | 17 | use Behat\Mink\Exception\ElementNotFoundException; |
17 | 18 | use Behat\Mink\Selector\Xpath\Escaper; |
18 | -use Behat\MinkExtension\Context\RawMinkContext; |
|
19 | 19 | |
20 | 20 | /** |
21 | 21 | * @author Arnaud Langlade <[email protected]> |
@@ -13,14 +13,12 @@ |
||
13 | 13 | |
14 | 14 | use Sylius\Bundle\ResourceBundle\DependencyInjection\Driver\DriverProvider; |
15 | 15 | use Sylius\Component\Resource\Metadata\Metadata; |
16 | -use Symfony\Component\Config\Definition\Processor; |
|
17 | 16 | use Symfony\Component\Config\FileLocator; |
17 | +use Symfony\Component\Config\Loader\LoaderInterface; |
|
18 | 18 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
19 | +use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException; |
|
19 | 20 | use Symfony\Component\DependencyInjection\Extension\Extension; |
20 | -use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface; |
|
21 | 21 | use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; |
22 | -use Symfony\Component\Config\Loader\LoaderInterface; |
|
23 | -use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException; |
|
24 | 22 | |
25 | 23 | /** |
26 | 24 | * @author Paweł Jędrzejewski <[email protected]> |
@@ -2,12 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace Sylius\Bundle\ResourceBundle\Doctrine\ODM\PHPCR\EventListener; |
4 | 4 | |
5 | -use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
|
6 | -use Symfony\Component\Form\FormEvents; |
|
7 | -use Symfony\Component\Form\FormEvent; |
|
8 | 5 | use Doctrine\ODM\PHPCR\DocumentManagerInterface; |
9 | -use PHPCR\Util\NodeHelper; |
|
10 | 6 | use Doctrine\ODM\PHPCR\Mapping\ClassMetadata; |
7 | +use PHPCR\Util\NodeHelper; |
|
11 | 8 | use Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent; |
12 | 9 | |
13 | 10 | /** |
@@ -11,12 +11,7 @@ |
||
11 | 11 | |
12 | 12 | namespace Sylius\Bundle\ResourceBundle\Doctrine\ODM\PHPCR\EventListener; |
13 | 13 | |
14 | -use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
|
15 | -use Symfony\Component\Form\FormEvents; |
|
16 | -use Symfony\Component\Form\FormEvent; |
|
17 | 14 | use Doctrine\ODM\PHPCR\DocumentManagerInterface; |
18 | -use PHPCR\Util\NodeHelper; |
|
19 | -use Doctrine\ODM\PHPCR\Mapping\ClassMetadata; |
|
20 | 15 | use Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent; |
21 | 16 | |
22 | 17 | /** |