@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle; |
| 4 | 4 | |
| 5 | -use eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension; |
|
| 6 | 5 | use Netgen\InformationCollection\PolicyProvider\InformationCollectionPolicyProvider; |
| 7 | 6 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
| 8 | 7 | use Symfony\Component\HttpKernel\Bundle\Bundle; |
| 8 | +use eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension; |
|
| 9 | 9 | |
| 10 | 10 | class NetgenInformationCollectionBundle extends Bundle |
| 11 | 11 | { |
@@ -39,7 +39,6 @@ |
||
| 39 | 39 | /** |
| 40 | 40 | * ActionAggregate constructor. |
| 41 | 41 | * |
| 42 | - * @param array $config |
|
| 43 | 42 | * @param LoggerInterface $logger |
| 44 | 43 | */ |
| 45 | 44 | public function __construct(iterable $actions, ConfigResolverInterface $configResolver, LoggerInterface $logger) |
@@ -8,10 +8,9 @@ |
||
| 8 | 8 | use Netgen\InformationCollection\API\Action\ActionInterface; |
| 9 | 9 | use Netgen\InformationCollection\API\Action\CrucialActionInterface; |
| 10 | 10 | use Netgen\InformationCollection\API\Exception\ActionFailedException; |
| 11 | -use Netgen\InformationCollection\API\Priority; |
|
| 12 | 11 | use Netgen\InformationCollection\API\Value\Event\InformationCollected; |
| 13 | -use eZ\Publish\Core\MVC\ConfigResolverInterface; |
|
| 14 | 12 | use Psr\Log\LoggerInterface; |
| 13 | +use eZ\Publish\Core\MVC\ConfigResolverInterface; |
|
| 15 | 14 | use function usort; |
| 16 | 15 | |
| 17 | 16 | class ActionRegistry implements ActionInterface |
@@ -2,13 +2,13 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Netgen\InformationCollection\Core\Export; |
| 4 | 4 | |
| 5 | -use eZ\Publish\API\Repository\Values\Content\Content; |
|
| 6 | -use eZ\Publish\Core\Helper\TranslationHelper; |
|
| 7 | 5 | use Netgen\InformationCollection\API\Export\ExportResponseFormatter; |
| 8 | 6 | use Netgen\InformationCollection\API\Value\Export\Export; |
| 9 | -use Symfony\Component\HttpFoundation\Response; |
|
| 10 | 7 | use PHPExcel; |
| 11 | 8 | use PHPExcel_IOFactory; |
| 9 | +use Symfony\Component\HttpFoundation\Response; |
|
| 10 | +use eZ\Publish\API\Repository\Values\Content\Content; |
|
| 11 | +use eZ\Publish\Core\Helper\TranslationHelper; |
|
| 12 | 12 | |
| 13 | 13 | final class XlsExportResponseFormatter implements ExportResponseFormatter |
| 14 | 14 | { |
@@ -46,7 +46,6 @@ discard block |
||
| 46 | 46 | /** |
| 47 | 47 | * EmailDataFactory constructor. |
| 48 | 48 | * |
| 49 | - * @param array $config |
|
| 50 | 49 | * @param \eZ\Publish\Core\Helper\TranslationHelper $translationHelper |
| 51 | 50 | * @param \eZ\Publish\Core\Helper\FieldHelper $fieldHelper |
| 52 | 51 | * @param \Twig\Environment $twig |
@@ -243,7 +242,7 @@ discard block |
||
| 243 | 242 | |
| 244 | 243 | /** |
| 245 | 244 | * @param string $contentTypeIdentifier |
| 246 | - * @param array $collectedFields |
|
| 245 | + * @param \EzSystems\RepositoryForms\Data\Content\FieldData[] $collectedFields |
|
| 247 | 246 | * |
| 248 | 247 | * @return BinaryFile[] |
| 249 | 248 | */ |
@@ -4,20 +4,20 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Netgen\InformationCollection\Core\Factory; |
| 6 | 6 | |
| 7 | -use eZ\Publish\Core\MVC\ConfigResolverInterface; |
|
| 8 | 7 | use Netgen\InformationCollection\Core\Action\EmailAction; |
| 8 | +use eZ\Publish\Core\MVC\ConfigResolverInterface; |
|
| 9 | 9 | use function array_key_exists; |
| 10 | -use eZ\Publish\API\Repository\Values\Content\Field; |
|
| 11 | -use eZ\Publish\Core\FieldType\BinaryFile\Value as BinaryFile; |
|
| 12 | -use eZ\Publish\Core\Helper\FieldHelper; |
|
| 13 | -use eZ\Publish\Core\Helper\TranslationHelper; |
|
| 14 | -use Netgen\InformationCollection\API\Value\DataTransfer\EmailContent; |
|
| 15 | -use Netgen\InformationCollection\API\Constants; |
|
| 16 | 10 | use Netgen\InformationCollection\API\ConfigurationConstants; |
| 11 | +use Netgen\InformationCollection\API\Constants; |
|
| 17 | 12 | use Netgen\InformationCollection\API\Exception\MissingEmailBlockException; |
| 18 | 13 | use Netgen\InformationCollection\API\Exception\MissingValueException; |
| 14 | +use Netgen\InformationCollection\API\Value\DataTransfer\EmailContent; |
|
| 19 | 15 | use Netgen\InformationCollection\API\Value\DataTransfer\TemplateContent; |
| 20 | 16 | use Netgen\InformationCollection\API\Value\Event\InformationCollected; |
| 17 | +use eZ\Publish\API\Repository\Values\Content\Field; |
|
| 18 | +use eZ\Publish\Core\FieldType\BinaryFile\Value as BinaryFile; |
|
| 19 | +use eZ\Publish\Core\Helper\FieldHelper; |
|
| 20 | +use eZ\Publish\Core\Helper\TranslationHelper; |
|
| 21 | 21 | use function trim; |
| 22 | 22 | use Twig\Environment; |
| 23 | 23 | |
@@ -121,6 +121,9 @@ |
||
| 121 | 121 | ); |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | + /** |
|
| 125 | + * @param integer $userId |
|
| 126 | + */ |
|
| 124 | 127 | private function getUser($userId): ?User |
| 125 | 128 | { |
| 126 | 129 | try { |
@@ -6,20 +6,20 @@ |
||
| 6 | 6 | |
| 7 | 7 | use DateTimeImmutable; |
| 8 | 8 | use DateTimeInterface; |
| 9 | -use eZ\Publish\API\Repository\Exceptions\NotFoundException; |
|
| 10 | -use eZ\Publish\API\Repository\Repository; |
|
| 11 | -use eZ\Publish\API\Repository\Values\Content\Content as APIContent; |
|
| 12 | -use eZ\Publish\API\Repository\Values\Content\Field; |
|
| 13 | -use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; |
|
| 14 | -use eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCollection; |
|
| 15 | -use eZ\Publish\API\Repository\Values\User\User; |
|
| 16 | -use eZ\Publish\Core\Repository\Values\ContentType\ContentType as CoreContentType; |
|
| 17 | 9 | use Netgen\InformationCollection\API\Value\Attribute; |
| 18 | 10 | use Netgen\InformationCollection\API\Value\AttributeValue; |
| 19 | 11 | use Netgen\InformationCollection\API\Value\Collection; |
| 20 | 12 | use Netgen\InformationCollection\API\Value\Content; |
| 21 | 13 | use Netgen\InformationCollection\Doctrine\Entity\EzInfoCollection; |
| 22 | 14 | use Netgen\InformationCollection\Doctrine\Entity\EzInfoCollectionAttribute; |
| 15 | +use eZ\Publish\API\Repository\Exceptions\NotFoundException; |
|
| 16 | +use eZ\Publish\API\Repository\Repository; |
|
| 17 | +use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; |
|
| 18 | +use eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCollection; |
|
| 19 | +use eZ\Publish\API\Repository\Values\Content\Content as APIContent; |
|
| 20 | +use eZ\Publish\API\Repository\Values\Content\Field; |
|
| 21 | +use eZ\Publish\API\Repository\Values\User\User; |
|
| 22 | +use eZ\Publish\Core\Repository\Values\ContentType\ContentType as CoreContentType; |
|
| 23 | 23 | |
| 24 | 24 | final class DomainObjectMapper |
| 25 | 25 | { |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | * Get attribute value string. |
| 82 | 82 | * |
| 83 | 83 | * @param int $fieldId |
| 84 | - * @param array $attributes |
|
| 84 | + * @param Attribute[] $attributes |
|
| 85 | 85 | * |
| 86 | 86 | * @return string |
| 87 | 87 | */ |
@@ -18,8 +18,7 @@ |
||
| 18 | 18 | /** |
| 19 | 19 | * Maps a ValueObject from eZ content repository to a data usable as underlying form data (e.g. create/update struct). |
| 20 | 20 | * |
| 21 | - * @param \eZ\Publish\API\Repository\Values\Content\Content $contentDraft |
|
| 22 | - * @param array $params |
|
| 21 | + * @param \eZ\Publish\API\Repository\Values\Content\Content $content |
|
| 23 | 22 | * |
| 24 | 23 | * @return InformationCollectionStruct |
| 25 | 24 | */ |
@@ -4,14 +4,12 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Netgen\InformationCollection\Integration\RepositoryForms; |
| 6 | 6 | |
| 7 | -use eZ\Publish\API\Repository\Values\Content\Content; |
|
| 7 | +use EzSystems\EzPlatformContentForms\Data\Content\FieldData; |
|
| 8 | +use Netgen\InformationCollection\API\Value\InformationCollectionStruct; |
|
| 8 | 9 | use eZ\Publish\API\Repository\Values\ContentType\ContentType; |
| 9 | 10 | use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; |
| 11 | +use eZ\Publish\API\Repository\Values\Content\Content; |
|
| 10 | 12 | use eZ\Publish\API\Repository\Values\ValueObject; |
| 11 | -use Netgen\InformationCollection\API\Value\InformationCollectionStruct; |
|
| 12 | -use Symfony\Component\OptionsResolver\OptionsResolver; |
|
| 13 | -use EzSystems\EzPlatformContentForms\Data\Mapper\FormDataMapperInterface; |
|
| 14 | -use EzSystems\EzPlatformContentForms\Data\Content\FieldData; |
|
| 15 | 13 | |
| 16 | 14 | final class InformationCollectionMapper |
| 17 | 15 | { |
@@ -6,12 +6,8 @@ |
||
| 6 | 6 | |
| 7 | 7 | use EzSystems\EzPlatformContentForms\FieldType\FieldTypeFormMapperDispatcherInterface; |
| 8 | 8 | use EzSystems\EzPlatformContentForms\Form\Type\Content\BaseContentType; |
| 9 | -use EzSystems\EzPlatformContentForms\Form\Type\Content\ContentFieldType; |
|
| 10 | 9 | use Netgen\InformationCollection\API\Value\InformationCollectionStruct; |
| 11 | 10 | use Symfony\Component\Form\AbstractType; |
| 12 | -use Symfony\Component\Form\Extension\Core\Type\CollectionType; |
|
| 13 | -use Symfony\Component\Form\Extension\Core\Type\HiddenType; |
|
| 14 | -use Symfony\Component\Form\FormBuilderInterface; |
|
| 15 | 11 | use Symfony\Component\OptionsResolver\OptionsResolver; |
| 16 | 12 | |
| 17 | 13 | class InformationCollectionType extends AbstractType |