@@ -52,10 +52,10 @@ discard block |
||
52 | 52 | /** |
53 | 53 | * InformationCollectionService constructor. |
54 | 54 | * |
55 | - * @param \Netgen\Bundle\InformationCollectionBundle\Repository\EzInfoCollectionRepository $ezInfoCollectionRepository |
|
56 | - * @param \Netgen\Bundle\InformationCollectionBundle\Repository\EzInfoCollectionAttributeRepository $ezInfoCollectionAttributeRepository |
|
55 | + * @param EzInfoCollectionRepository $ezInfoCollectionRepository |
|
56 | + * @param EzInfoCollectionAttributeRepository $ezInfoCollectionAttributeRepository |
|
57 | 57 | * @param \eZ\Publish\API\Repository\Repository $repository |
58 | - * @param \Netgen\Bundle\InformationCollectionBundle\Core\Persistence\Gateway\DoctrineDatabase $gateway |
|
58 | + * @param DoctrineDatabase $gateway |
|
59 | 59 | */ |
60 | 60 | public function __construct( |
61 | 61 | EzInfoCollectionRepository $ezInfoCollectionRepository, |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | /** |
279 | 279 | * @param int $collectionId |
280 | 280 | * |
281 | - * @return \Netgen\Bundle\InformationCollectionBundle\API\Value\InformationCollection\Collection |
|
281 | + * @return Collection |
|
282 | 282 | */ |
283 | 283 | protected function loadCollection($collectionId) |
284 | 284 | { |
@@ -4,7 +4,6 @@ discard block |
||
4 | 4 | |
5 | 5 | namespace Netgen\InformationCollection\Core\Service; |
6 | 6 | |
7 | -use eZ\Publish\API\Repository\Repository; |
|
8 | 7 | use Netgen\InformationCollection\API\Service\InformationCollection; |
9 | 8 | use Netgen\InformationCollection\API\Value\Attribute; |
10 | 9 | use Netgen\InformationCollection\API\Value\Collection; |
@@ -14,8 +13,9 @@ discard block |
||
14 | 13 | use Netgen\InformationCollection\API\Value\Filter\Query; |
15 | 14 | use Netgen\InformationCollection\Core\Persistence\Gateway\DoctrineDatabase; |
16 | 15 | use Netgen\InformationCollection\Doctrine\Entity\EzInfoCollectionAttribute; |
17 | -use Netgen\InformationCollection\Doctrine\Repository\EzInfoCollectionRepository; |
|
18 | 16 | use Netgen\InformationCollection\Doctrine\Repository\EzInfoCollectionAttributeRepository; |
17 | +use Netgen\InformationCollection\Doctrine\Repository\EzInfoCollectionRepository; |
|
18 | +use eZ\Publish\API\Repository\Repository; |
|
19 | 19 | |
20 | 20 | class InformationCollectionService implements InformationCollection |
21 | 21 | { |
@@ -2,12 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace Netgen\InformationCollection\API; |
4 | 4 | |
5 | -use eZ\Publish\Core\MVC\Symfony\View\ContentValueView; |
|
6 | -use eZ\Publish\Core\MVC\Symfony\View\LocationValueView; |
|
5 | +use Netgen\InformationCollection\API\Form\DynamicFormBuilderInterface; |
|
7 | 6 | use Netgen\InformationCollection\API\Value\DataTransfer\AdditionalContent; |
8 | 7 | use Netgen\InformationCollection\API\Value\Event\InformationCollected; |
9 | 8 | use Symfony\Component\HttpFoundation\Request; |
10 | -use Netgen\InformationCollection\API\Form\DynamicFormBuilderInterface; |
|
9 | +use eZ\Publish\Core\MVC\Symfony\View\ContentValueView; |
|
10 | +use eZ\Publish\Core\MVC\Symfony\View\LocationValueView; |
|
11 | 11 | |
12 | 12 | trait InformationCollectionTrait |
13 | 13 | { |
@@ -5,17 +5,17 @@ |
||
5 | 5 | namespace Netgen\InformationCollection\Core\Action; |
6 | 6 | |
7 | 7 | use Doctrine\DBAL\DBALException; |
8 | -use eZ\Publish\API\Repository\PermissionResolver; |
|
9 | -use eZ\Publish\API\Repository\Repository; |
|
10 | -use Netgen\InformationCollection\Doctrine\Entity\EzInfoCollection; |
|
11 | -use Netgen\InformationCollection\API\Value\Event\InformationCollected; |
|
8 | +use Netgen\InformationCollection\API\Action\ActionInterface; |
|
9 | +use Netgen\InformationCollection\API\Action\CrucialActionInterface; |
|
12 | 10 | use Netgen\InformationCollection\API\Exception\ActionFailedException; |
11 | +use Netgen\InformationCollection\API\Value\Event\InformationCollected; |
|
12 | +use Netgen\InformationCollection\API\Value\Legacy\FieldValue; |
|
13 | 13 | use Netgen\InformationCollection\Core\Factory\FieldDataFactory; |
14 | +use Netgen\InformationCollection\Doctrine\Entity\EzInfoCollection; |
|
14 | 15 | use Netgen\InformationCollection\Doctrine\Repository\EzInfoCollectionAttributeRepository; |
15 | 16 | use Netgen\InformationCollection\Doctrine\Repository\EzInfoCollectionRepository; |
16 | -use Netgen\InformationCollection\API\Action\ActionInterface; |
|
17 | -use Netgen\InformationCollection\API\Action\CrucialActionInterface; |
|
18 | -use Netgen\InformationCollection\API\Value\Legacy\FieldValue; |
|
17 | +use eZ\Publish\API\Repository\PermissionResolver; |
|
18 | +use eZ\Publish\API\Repository\Repository; |
|
19 | 19 | |
20 | 20 | class DatabaseAction implements ActionInterface, CrucialActionInterface |
21 | 21 | { |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | * |
74 | 74 | * @param InformationCollected $value |
75 | 75 | * |
76 | - * @return EmailData |
|
76 | + * @return EmailContent |
|
77 | 77 | */ |
78 | 78 | public function build(InformationCollected $value) |
79 | 79 | { |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | } |
235 | 235 | |
236 | 236 | /** |
237 | - * @param $contentTypeIdentifier |
|
237 | + * @param string $contentTypeIdentifier |
|
238 | 238 | * @param array $collectedFields |
239 | 239 | * |
240 | 240 | * @return BinaryFile[]|null |
@@ -5,16 +5,14 @@ |
||
5 | 5 | namespace Netgen\InformationCollection\Core\Factory; |
6 | 6 | |
7 | 7 | use function array_key_exists; |
8 | +use Netgen\InformationCollection\API\Constants; |
|
9 | +use Netgen\InformationCollection\API\Exception\MissingEmailBlockException; |
|
10 | +use Netgen\InformationCollection\API\Exception\MissingValueException; |
|
11 | +use Netgen\InformationCollection\API\Value\Event\InformationCollected; |
|
8 | 12 | use eZ\Publish\API\Repository\ContentService; |
9 | 13 | use eZ\Publish\Core\FieldType\BinaryFile\Value as BinaryFile; |
10 | 14 | use eZ\Publish\Core\Helper\FieldHelper; |
11 | 15 | use eZ\Publish\Core\Helper\TranslationHelper; |
12 | -use Netgen\InformationCollection\API\Value\Event\InformationCollected; |
|
13 | -use Netgen\InformationCollection\API\Exception\MissingEmailBlockException; |
|
14 | -use Netgen\InformationCollection\API\Exception\MissingValueException; |
|
15 | -use Netgen\InformationCollection\API\Value\DataTransfer\TemplateContent; |
|
16 | -use Netgen\InformationCollection\API\Value\DataTransfer\EmailContent; |
|
17 | -use Netgen\InformationCollection\API\Constants; |
|
18 | 16 | use function trim; |
19 | 17 | use Twig_Environment; |
20 | 18 |
@@ -2,15 +2,15 @@ |
||
2 | 2 | |
3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\Controller\Admin; |
4 | 4 | |
5 | -use eZ\Bundle\EzPublishCoreBundle\Controller; |
|
6 | -use eZ\Publish\API\Repository\ContentService; |
|
5 | +use League\Csv\Writer; |
|
7 | 6 | use Netgen\InformationCollection\API\Service\Exporter; |
8 | 7 | use Netgen\InformationCollection\API\Value\Export\ExportCriteria; |
9 | 8 | use Netgen\InformationCollection\Form\Type\ExportType; |
10 | -use Symfony\Component\HttpFoundation\Request; |
|
11 | -use League\Csv\Writer; |
|
12 | 9 | use SplTempFileObject; |
10 | +use Symfony\Component\HttpFoundation\Request; |
|
13 | 11 | use Symfony\Component\HttpFoundation\Response; |
12 | +use eZ\Bundle\EzPublishCoreBundle\Controller; |
|
13 | +use eZ\Publish\API\Repository\ContentService; |
|
14 | 14 | |
15 | 15 | final class ExportController extends Controller |
16 | 16 | { |