@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle; |
4 | 4 | |
5 | -use eZ\Publish\Core\MVC\Symfony\View\ContentValueView; |
|
6 | -use eZ\Publish\Core\MVC\Symfony\View\LocationValueView; |
|
7 | 5 | use Netgen\Bundle\InformationCollectionBundle\Event\InformationCollected; |
8 | 6 | use Symfony\Component\HttpFoundation\Request; |
7 | +use eZ\Publish\Core\MVC\Symfony\View\ContentValueView; |
|
8 | +use eZ\Publish\Core\MVC\Symfony\View\LocationValueView; |
|
9 | 9 | |
10 | 10 | trait InformationCollectionTrait |
11 | 11 | { |
@@ -3,15 +3,15 @@ |
||
3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\Action; |
4 | 4 | |
5 | 5 | use Doctrine\DBAL\DBALException; |
6 | -use eZ\Publish\API\Repository\Repository; |
|
7 | -use eZ\Publish\API\Repository\Values\User\User; |
|
8 | -use eZ\Publish\Core\Repository\Values\Content\Content; |
|
9 | 6 | use Netgen\Bundle\InformationCollectionBundle\Entity\EzInfoCollection; |
10 | 7 | use Netgen\Bundle\InformationCollectionBundle\Event\InformationCollected; |
11 | 8 | use Netgen\Bundle\InformationCollectionBundle\Exception\ActionFailedException; |
12 | 9 | use Netgen\Bundle\InformationCollectionBundle\Factory\FieldDataFactory; |
13 | 10 | use Netgen\Bundle\InformationCollectionBundle\Repository\RepositoryAggregate; |
14 | 11 | use Netgen\Bundle\InformationCollectionBundle\Value\LegacyData; |
12 | +use eZ\Publish\API\Repository\Repository; |
|
13 | +use eZ\Publish\API\Repository\Values\User\User; |
|
14 | +use eZ\Publish\Core\Repository\Values\Content\Content; |
|
15 | 15 | |
16 | 16 | class DatabaseAction implements ActionInterface, CrucialActionInterface |
17 | 17 | { |
@@ -2,12 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\Controller; |
4 | 4 | |
5 | -use eZ\Publish\Core\MVC\Symfony\View\CachableView; |
|
6 | -use eZ\Publish\Core\MVC\Symfony\View\ContentValueView; |
|
7 | 5 | use Netgen\Bundle\InformationCollectionBundle\InformationCollectionTrait; |
8 | 6 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
9 | 7 | use Symfony\Component\DependencyInjection\ContainerAwareTrait; |
10 | 8 | use Symfony\Component\HttpFoundation\Request; |
9 | +use eZ\Publish\Core\MVC\Symfony\View\CachableView; |
|
10 | +use eZ\Publish\Core\MVC\Symfony\View\ContentValueView; |
|
11 | 11 | |
12 | 12 | class InformationCollectionController implements ContainerAwareInterface |
13 | 13 | { |
@@ -3,17 +3,6 @@ discard block |
||
3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\Tests\Action; |
4 | 4 | |
5 | 5 | use Doctrine\DBAL\DBALException; |
6 | -use eZ\Publish\API\Repository\Values\Content\Field; |
|
7 | -use eZ\Publish\Core\FieldType\TextLine\Value as TextLineValue; |
|
8 | -use eZ\Publish\Core\Repository\ContentService; |
|
9 | -use eZ\Publish\Core\Repository\Repository; |
|
10 | -use eZ\Publish\Core\Repository\Values\Content\Content; |
|
11 | -use eZ\Publish\Core\Repository\Values\Content\Location; |
|
12 | -use eZ\Publish\Core\Repository\Values\Content\VersionInfo; |
|
13 | -use eZ\Publish\Core\Repository\Values\ContentType\ContentType; |
|
14 | -use eZ\Publish\Core\Repository\Values\ContentType\FieldDefinition; |
|
15 | -use eZ\Publish\Core\Repository\Values\User\User; |
|
16 | -use eZ\Publish\SPI\Persistence\Content\ContentInfo; |
|
17 | 6 | use Netgen\Bundle\EzFormsBundle\Form\DataWrapper; |
18 | 7 | use Netgen\Bundle\EzFormsBundle\Form\Payload\InformationCollectionStruct; |
19 | 8 | use Netgen\Bundle\InformationCollectionBundle\Action\DatabaseAction; |
@@ -24,6 +13,17 @@ discard block |
||
24 | 13 | use Netgen\Bundle\InformationCollectionBundle\Repository\RepositoryAggregate; |
25 | 14 | use Netgen\Bundle\InformationCollectionBundle\Value\LegacyData; |
26 | 15 | use PHPUnit\Framework\TestCase; |
16 | +use eZ\Publish\API\Repository\Values\Content\Field; |
|
17 | +use eZ\Publish\Core\FieldType\TextLine\Value as TextLineValue; |
|
18 | +use eZ\Publish\Core\Repository\ContentService; |
|
19 | +use eZ\Publish\Core\Repository\Repository; |
|
20 | +use eZ\Publish\Core\Repository\Values\ContentType\ContentType; |
|
21 | +use eZ\Publish\Core\Repository\Values\ContentType\FieldDefinition; |
|
22 | +use eZ\Publish\Core\Repository\Values\Content\Content; |
|
23 | +use eZ\Publish\Core\Repository\Values\Content\Location; |
|
24 | +use eZ\Publish\Core\Repository\Values\Content\VersionInfo; |
|
25 | +use eZ\Publish\Core\Repository\Values\User\User; |
|
26 | +use eZ\Publish\SPI\Persistence\Content\ContentInfo; |
|
27 | 27 | |
28 | 28 | class DatabaseActionTest extends TestCase |
29 | 29 | { |
@@ -2,14 +2,14 @@ |
||
2 | 2 | |
3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\Tests\FieldHandler; |
4 | 4 | |
5 | -use eZ\Publish\API\Repository\Values\Content\ContentInfo; |
|
6 | -use eZ\Publish\Core\Repository\ContentTypeService; |
|
7 | -use eZ\Publish\Core\Repository\Values\Content\Location; |
|
8 | 5 | use Netgen\Bundle\InformationCollectionBundle\Form\Builder\FormBuilder; |
9 | 6 | use PHPUnit\Framework\TestCase; |
10 | 7 | use Symfony\Component\Form\FormBuilder as SymfonyFormBuilder; |
11 | 8 | use Symfony\Component\Form\FormFactory; |
12 | 9 | use Symfony\Component\Routing\Router; |
10 | +use eZ\Publish\API\Repository\Values\Content\ContentInfo; |
|
11 | +use eZ\Publish\Core\Repository\ContentTypeService; |
|
12 | +use eZ\Publish\Core\Repository\Values\Content\Location; |
|
13 | 13 | |
14 | 14 | class FormBuilderTest extends TestCase |
15 | 15 | { |
@@ -23,8 +23,6 @@ |
||
23 | 23 | /** |
24 | 24 | * RepositoryAggregate constructor. |
25 | 25 | * |
26 | - * @param EzInfoCollectionRepository $infoCollectionRepository |
|
27 | - * @param EzInfoCollectionAttributeRepository $infoCollectionAttributeRepository |
|
28 | 26 | */ |
29 | 27 | public function __construct( |
30 | 28 | EzInfoCollectionRepository $repository, |
@@ -2,11 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\Repository; |
4 | 4 | |
5 | -use eZ\Publish\API\Repository\Values\Content\Location; |
|
6 | -use eZ\Publish\API\Repository\Values\User\User; |
|
7 | 5 | use Netgen\Bundle\InformationCollectionBundle\Entity\EzInfoCollection; |
8 | 6 | use Netgen\Bundle\InformationCollectionBundle\Entity\EzInfoCollectionAttribute; |
9 | 7 | use Netgen\Bundle\InformationCollectionBundle\Value\LegacyData; |
8 | +use eZ\Publish\API\Repository\Values\Content\Location; |
|
9 | +use eZ\Publish\API\Repository\Values\User\User; |
|
10 | 10 | |
11 | 11 | class RepositoryAggregate |
12 | 12 | { |
@@ -34,7 +34,7 @@ |
||
34 | 34 | /** |
35 | 35 | * @param Location $location |
36 | 36 | * @param EzInfoCollection $ezInfoCollection |
37 | - * @param $fieldId |
|
37 | + * @param integer $fieldId |
|
38 | 38 | * @param LegacyData $value |
39 | 39 | * |
40 | 40 | * @return EzInfoCollectionAttribute |
@@ -3,10 +3,10 @@ |
||
3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\Repository; |
4 | 4 | |
5 | 5 | use Doctrine\ORM\EntityRepository; |
6 | -use eZ\Publish\API\Repository\Values\Content\Location; |
|
7 | 6 | use Netgen\Bundle\InformationCollectionBundle\Entity\EzInfoCollection; |
8 | 7 | use Netgen\Bundle\InformationCollectionBundle\Entity\EzInfoCollectionAttribute; |
9 | 8 | use Netgen\Bundle\InformationCollectionBundle\Value\LegacyData; |
9 | +use eZ\Publish\API\Repository\Values\Content\Location; |
|
10 | 10 | |
11 | 11 | class EzInfoCollectionAttributeRepository extends EntityRepository |
12 | 12 | { |
@@ -2,7 +2,6 @@ discard block |
||
2 | 2 | |
3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\Tests\Value; |
4 | 4 | |
5 | -use eZ\Publish\Core\Repository\Values\Content\Content; |
|
6 | 5 | use Netgen\Bundle\EzFormsBundle\Form\DataWrapper; |
7 | 6 | use Netgen\Bundle\InformationCollectionBundle\Event\InformationCollected; |
8 | 7 | use Netgen\Bundle\InformationCollectionBundle\Value\TemplateData; |
@@ -10,6 +9,7 @@ discard block |
||
10 | 9 | use Twig_Environment; |
11 | 10 | use Twig_Loader_Array; |
12 | 11 | use Twig_TemplateWrapper; |
12 | +use eZ\Publish\Core\Repository\Values\Content\Content; |
|
13 | 13 | |
14 | 14 | class TemplateDataTest extends TestCase |
15 | 15 | { |