@@ -39,8 +39,8 @@ discard block |
||
| 39 | 39 | /** |
| 40 | 40 | * ExporterService constructor. |
| 41 | 41 | * |
| 42 | - * @param \Netgen\Bundle\InformationCollectionBundle\Repository\EzInfoCollectionRepository $ezInfoCollectionRepository |
|
| 43 | - * @param \Netgen\Bundle\InformationCollectionBundle\Repository\EzInfoCollectionAttributeRepository $ezInfoCollectionAttributeRepository |
|
| 42 | + * @param EzInfoCollectionRepository $ezInfoCollectionRepository |
|
| 43 | + * @param EzInfoCollectionAttributeRepository $ezInfoCollectionAttributeRepository |
|
| 44 | 44 | * @param \Symfony\Component\Translation\TranslatorInterface $translator |
| 45 | 45 | * @param \Netgen\Bundle\InformationCollectionBundle\Core\Persistence\ContentTypeUtils $contentTypeUtils |
| 46 | 46 | */ |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | /** |
| 99 | 99 | * Get create date from EzInfoCollection as string. |
| 100 | 100 | * |
| 101 | - * @param \Netgen\Bundle\InformationCollectionBundle\Entity\EzInfoCollection $ezInfoCollection |
|
| 101 | + * @param EzInfoCollection $ezInfoCollection |
|
| 102 | 102 | * |
| 103 | 103 | * @return string |
| 104 | 104 | */ |
@@ -10,8 +10,8 @@ |
||
| 10 | 10 | use Netgen\Bundle\InformationCollectionBundle\Core\Persistence\ContentTypeUtils; |
| 11 | 11 | use Netgen\InformationCollection\Doctrine\Entity\EzInfoCollection; |
| 12 | 12 | use Netgen\InformationCollection\Doctrine\Entity\EzInfoCollectionAttribute; |
| 13 | -use Netgen\InformationCollection\Doctrine\Repository\EzInfoCollectionRepository; |
|
| 14 | 13 | use Netgen\InformationCollection\Doctrine\Repository\EzInfoCollectionAttributeRepository; |
| 14 | +use Netgen\InformationCollection\Doctrine\Repository\EzInfoCollectionRepository; |
|
| 15 | 15 | use Symfony\Component\Translation\TranslatorInterface; |
| 16 | 16 | |
| 17 | 17 | class ExporterService implements Exporter |
@@ -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,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Netgen\InformationCollection\Templating\Twig; |
| 4 | 4 | |
| 5 | -use eZ\Publish\API\Repository\Values\Content\Location; |
|
| 6 | 5 | use Netgen\Bundle\InformationCollectionBundle\Form\Captcha\CaptchaService; |
| 7 | 6 | use Twig_Extension; |
| 8 | 7 | use Twig_SimpleFunction; |
| 8 | +use eZ\Publish\API\Repository\Values\Content\Location; |
|
| 9 | 9 | |
| 10 | 10 | class InformationCollectionExtension extends Twig_Extension |
| 11 | 11 | { |
@@ -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 | |