@@ -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 | /** |
@@ -11,11 +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 | 15 | use Doctrine\ODM\PHPCR\Mapping\ClassMetadata; |
20 | 16 | use Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent; |
21 | 17 |
@@ -11,14 +11,10 @@ |
||
11 | 11 | |
12 | 12 | namespace Sylius\Bundle\ResourceBundle\Doctrine\ODM\PHPCR\Form\Builder; |
13 | 13 | |
14 | -use Doctrine\DBAL\Types\Type; |
|
14 | +use Doctrine\ODM\PHPCR\DocumentManagerInterface; |
|
15 | 15 | use Sylius\Bundle\ResourceBundle\Form\Builder\DefaultFormBuilderInterface; |
16 | 16 | use Sylius\Component\Resource\Metadata\MetadataInterface; |
17 | 17 | use Symfony\Component\Form\FormBuilderInterface; |
18 | -use Doctrine\ODM\PHPCR\DocumentManagerInterface; |
|
19 | -use Doctrine\ODM\PHPCR\Mapping\ClassMetadata; |
|
20 | -use Sylius\Bundle\ResourceBundle\Doctrine\ODM\PHPCR\Form\Subscriber\DefaultPathSubscriber; |
|
21 | -use Sylius\Bundle\ResourceBundle\Doctrine\ODM\PHPCR\Form\Subscriber\NameResolverSubscriber; |
|
22 | 18 | |
23 | 19 | /** |
24 | 20 | * @author Daniel Leech <[email protected]> |
@@ -11,13 +11,12 @@ |
||
11 | 11 | |
12 | 12 | namespace spec\Sylius\Bundle\ResourceBundle\Doctrine\ODM\PHPCR\EventListener; |
13 | 13 | |
14 | +use Doctrine\ODM\PHPCR\DocumentManagerInterface; |
|
15 | +use Doctrine\ODM\PHPCR\Mapping\ClassMetadata; |
|
16 | +use PHPCR\NodeInterface; |
|
14 | 17 | use PhpSpec\ObjectBehavior; |
15 | -use Prophecy\Argument; |
|
16 | 18 | use Sylius\Bundle\ResourceBundle\Doctrine\ODM\PHPCR\EventListener\NameResolverListener; |
17 | -use Doctrine\ODM\PHPCR\Mapping\ClassMetadata; |
|
18 | 19 | use Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent; |
19 | -use Doctrine\ODM\PHPCR\DocumentManagerInterface; |
|
20 | -use PHPCR\NodeInterface; |
|
21 | 20 | |
22 | 21 | /** |
23 | 22 | * @author Daniel Leech <[email protected]> |
@@ -16,8 +16,8 @@ |
||
16 | 16 | use Sylius\Bundle\ReviewBundle\Doctrine\ORM\ReviewRepository; |
17 | 17 | use Sylius\Bundle\ReviewBundle\Form\Type\ReviewType; |
18 | 18 | use Sylius\Component\Resource\Factory\Factory; |
19 | -use Sylius\Component\Review\Model\ReviewerInterface; |
|
20 | 19 | use Sylius\Component\Review\Model\ReviewInterface; |
20 | +use Sylius\Component\Review\Model\ReviewerInterface; |
|
21 | 21 | use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; |
22 | 22 | use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
23 | 23 | use Symfony\Component\Config\Definition\ConfigurationInterface; |
@@ -14,10 +14,9 @@ |
||
14 | 14 | use Doctrine\Common\Persistence\ObjectManager; |
15 | 15 | use Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository; |
16 | 16 | use Sylius\Bundle\ReviewBundle\Updater\ReviewableRatingUpdaterInterface; |
17 | -use Sylius\Component\Review\Calculator\ReviewableRatingCalculatorInterface; |
|
17 | +use Sylius\Component\Review\Model\ReviewInterface; |
|
18 | 18 | use Sylius\Component\Review\Model\ReviewableInterface; |
19 | 19 | use Sylius\Component\Review\Model\ReviewerInterface; |
20 | -use Sylius\Component\Review\Model\ReviewInterface; |
|
21 | 20 | |
22 | 21 | /** |
23 | 22 | * @author Grzegorz Sadowski <[email protected]> |
@@ -14,25 +14,25 @@ |
||
14 | 14 | use Elastica\Aggregation\Filter; |
15 | 15 | use Elastica\Aggregation\Range as AggregationRange; |
16 | 16 | use Elastica\Aggregation\Terms as AggregationTerms; |
17 | -use Elastica\Query; |
|
18 | -use Elastica\Query\BoolQuery; |
|
19 | -use Elastica\Query\Filtered; |
|
20 | -use Elastica\Query\QueryString; |
|
21 | -use Elastica\Query\Range as QueryRange; |
|
22 | -use Elastica\Query\Term as QueryTerm; |
|
23 | 17 | use Elastica\Filter\BoolFilter; |
24 | 18 | use Elastica\Filter\BoolOr; |
25 | 19 | use Elastica\Filter\Missing; |
26 | 20 | use Elastica\Filter\Nested; |
27 | 21 | use Elastica\Filter\Range as FilterRange; |
28 | -use Elastica\Filter\Type; |
|
29 | 22 | use Elastica\Filter\Term as FilterTerm; |
30 | 23 | use Elastica\Filter\Terms as FilterTerms; |
24 | +use Elastica\Filter\Type; |
|
25 | +use Elastica\Query; |
|
26 | +use Elastica\Query\BoolQuery; |
|
27 | +use Elastica\Query\Filtered; |
|
28 | +use Elastica\Query\QueryString; |
|
29 | +use Elastica\Query\Range as QueryRange; |
|
30 | +use Elastica\Query\Term as QueryTerm; |
|
31 | 31 | use Sylius\Bundle\SearchBundle\Doctrine\ORM\SearchIndexRepository; |
32 | +use Sylius\Bundle\SearchBundle\QueryLogger\QueryLoggerInterface; |
|
32 | 33 | use Sylius\Bundle\SearchBundle\Query\Query as SyliusSearchQuery; |
33 | 34 | use Sylius\Bundle\SearchBundle\Query\SearchStringQuery; |
34 | 35 | use Sylius\Bundle\SearchBundle\Query\TaxonQuery; |
35 | -use Sylius\Bundle\SearchBundle\QueryLogger\QueryLoggerInterface; |
|
36 | 36 | use Sylius\Component\Channel\Context\ChannelContextInterface; |
37 | 37 | |
38 | 38 | /** |
@@ -16,10 +16,10 @@ |
||
16 | 16 | use Pagerfanta\Pagerfanta; |
17 | 17 | use Sylius\Bundle\SearchBundle\Doctrine\ORM\SearchIndexRepository; |
18 | 18 | use Sylius\Bundle\SearchBundle\Model\SearchIndex; |
19 | +use Sylius\Bundle\SearchBundle\QueryLogger\QueryLoggerInterface; |
|
19 | 20 | use Sylius\Bundle\SearchBundle\Query\Query; |
20 | 21 | use Sylius\Bundle\SearchBundle\Query\SearchStringQuery; |
21 | 22 | use Sylius\Bundle\SearchBundle\Query\TaxonQuery; |
22 | -use Sylius\Bundle\SearchBundle\QueryLogger\QueryLoggerInterface; |
|
23 | 23 | use Sylius\Component\Channel\Context\ChannelContextInterface; |
24 | 24 | |
25 | 25 | /** |