@@ -5,9 +5,7 @@ |
||
5 | 5 | use Symfony\Component\Form\FormInterface; |
6 | 6 | use Symfony\Component\HttpFoundation\Request; |
7 | 7 | use Symfony\Component\Security\Core\SecurityContextInterface; |
8 | - |
|
9 | 8 | use Doctrine\Common\Persistence\ObjectManager; |
10 | - |
|
11 | 9 | use Oro\Bundle\NavigationBundle\Entity\AbstractPageState; |
12 | 10 | |
13 | 11 | class PageStateHandler |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Bundle\NavigationBundle\Menu\Matcher\Voter; |
4 | 4 | |
5 | 5 | use Symfony\Component\HttpFoundation\Request; |
6 | - |
|
7 | 6 | use Knp\Menu\Matcher\Voter\VoterInterface; |
8 | 7 | use Knp\Menu\ItemInterface; |
9 | 8 |
@@ -3,12 +3,9 @@ |
||
3 | 3 | namespace Oro\Bundle\NavigationBundle\Menu; |
4 | 4 | |
5 | 5 | use Knp\Menu\ItemInterface; |
6 | - |
|
7 | 6 | use Doctrine\ORM\EntityManager; |
8 | 7 | use Doctrine\Common\Util\ClassUtils; |
9 | - |
|
10 | 8 | use Symfony\Component\Security\Core\SecurityContextInterface; |
11 | - |
|
12 | 9 | use Oro\Bundle\NavigationBundle\Entity\Builder\ItemFactory; |
13 | 10 | use Oro\Bundle\NavigationBundle\Entity\NavigationItemInterface; |
14 | 11 | use Oro\Bundle\NavigationBundle\Entity\Repository\NavigationRepositoryInterface; |
@@ -6,11 +6,9 @@ |
||
6 | 6 | use Doctrine\DBAL\Types\Type; |
7 | 7 | use Doctrine\ORM\EntityManagerInterface; |
8 | 8 | use Doctrine\ORM\Tools\Pagination\Paginator; |
9 | - |
|
10 | 9 | use Symfony\Bundle\FrameworkBundle\Routing\Router; |
11 | 10 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
12 | 11 | use Symfony\Component\DependencyInjection\ContainerInterface; |
13 | - |
|
14 | 12 | use Oro\Bundle\MigrationBundle\Migration\Migration; |
15 | 13 | use Oro\Bundle\MigrationBundle\Migration\QueryBag; |
16 | 14 | use Oro\Bundle\NavigationBundle\Entity\NavigationHistoryItem; |
@@ -4,12 +4,10 @@ |
||
4 | 4 | |
5 | 5 | use Symfony\Component\DependencyInjection\Container; |
6 | 6 | use Symfony\Component\Security\Core\SecurityContextInterface; |
7 | - |
|
8 | 7 | use Oro\Bundle\NavigationBundle\Content\TagGeneratorChain; |
9 | 8 | use Oro\Bundle\SyncBundle\Wamp\TopicPublisher; |
10 | 9 | use Oro\Bundle\NavigationBundle\Content\TopicSender; |
11 | 10 | use Oro\Bundle\EntityConfigBundle\DependencyInjection\Utils\ServiceLink; |
12 | - |
|
13 | 11 | use Psr\Log\LoggerInterface; |
14 | 12 | |
15 | 13 | class TopicSenderTest extends \PHPUnit_Framework_TestCase |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use Oro\Bundle\NavigationBundle\Event\ResponseHistoryListener; |
8 | 8 | use Oro\Bundle\NavigationBundle\Provider\TitleService; |
9 | 9 | use Oro\Bundle\UserBundle\Entity\User; |
10 | - |
|
11 | 10 | use Symfony\Component\HttpFoundation\Request; |
12 | 11 | use Symfony\Component\HttpKernel\HttpKernelInterface; |
13 | 12 |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | * @param null|\Symfony\Component\HttpFoundation\Response $response |
185 | 185 | * @param string $type |
186 | 186 | * |
187 | - * @return mixed |
|
187 | + * @return \Symfony\Component\HttpKernel\Event\FilterResponseEvent |
|
188 | 188 | */ |
189 | 189 | private function getEventMock($request, $response, $type = 'Symfony\Component\HttpKernel\Event\FilterResponseEvent') |
190 | 190 | { |
@@ -253,6 +253,9 @@ discard block |
||
253 | 253 | return $response; |
254 | 254 | } |
255 | 255 | |
256 | + /** |
|
257 | + * @return \Oro\Bundle\NavigationBundle\Provider\TitleServiceInterface |
|
258 | + */ |
|
256 | 259 | public function getTitleService() |
257 | 260 | { |
258 | 261 |
@@ -2,9 +2,7 @@ |
||
2 | 2 | namespace Oro\Bundle\NavigationBundle\Tests\Unit\Menu; |
3 | 3 | |
4 | 4 | use Oro\Bundle\NavigationBundle\Menu\BreadcrumbManager; |
5 | - |
|
6 | 5 | use Knp\Menu\MenuItem; |
7 | -use Oro\Bundle\NavigationBundle\Menu\ConfigurationBuilder; |
|
8 | 6 | use Oro\Bundle\NavigationBundle\Provider\BuilderChainProvider; |
9 | 7 | |
10 | 8 | class BreadcrumbManagerTest extends \PHPUnit_Framework_TestCase |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use Oro\Bundle\NavigationBundle\Menu\AclAwareMenuFactoryExtension; |
6 | 6 | use Oro\Bundle\NavigationBundle\Menu\ConfigurationBuilder; |
7 | 7 | use Oro\Component\Config\Resolver\SystemAwareResolver; |
8 | - |
|
9 | 8 | use Knp\Menu\MenuItem; |
10 | 9 | |
11 | 10 | class ConfigurationBuilderTest extends \PHPUnit_Framework_TestCase |
@@ -137,7 +137,7 @@ |
||
137 | 137 | } |
138 | 138 | |
139 | 139 | /** |
140 | - * @param $filePattern |
|
140 | + * @param string $filePattern |
|
141 | 141 | * @param array $dirs |
142 | 142 | * |
143 | 143 | * @return array |
@@ -2,7 +2,6 @@ |
||
2 | 2 | namespace Oro\Bundle\NavigationBundle\Title\TitleReader; |
3 | 3 | |
4 | 4 | use Doctrine\Common\Annotations\Reader as CommonAnnotationsReader; |
5 | - |
|
6 | 5 | use Symfony\Component\Finder\Finder; |
7 | 6 | use Symfony\Component\HttpKernel\KernelInterface; |
8 | 7 |