@@ -4,10 +4,10 @@ |
||
4 | 4 | |
5 | 5 | namespace Netgen\InformationCollection\API\Value; |
6 | 6 | |
7 | +use Netgen\InformationCollection\Doctrine\Entity\EzInfoCollectionAttribute; |
|
8 | +use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; |
|
7 | 9 | use eZ\Publish\API\Repository\Values\Content\Content; |
8 | 10 | use eZ\Publish\API\Repository\Values\Content\Field; |
9 | -use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; |
|
10 | -use Netgen\InformationCollection\Doctrine\Entity\EzInfoCollectionAttribute; |
|
11 | 11 | |
12 | 12 | final class Attribute extends ValueObject |
13 | 13 | { |
@@ -4,9 +4,9 @@ |
||
4 | 4 | |
5 | 5 | namespace Netgen\InformationCollection\API\Value; |
6 | 6 | |
7 | -use eZ\Publish\API\Repository\Values\Content\Content; |
|
8 | -use eZ\Publish\API\Repository\Values\ContentType\ContentType; |
|
9 | 7 | use EzSystems\RepositoryForms\Data\Content\FieldData; |
8 | +use eZ\Publish\API\Repository\Values\ContentType\ContentType; |
|
9 | +use eZ\Publish\API\Repository\Values\Content\Content; |
|
10 | 10 | |
11 | 11 | final class InformationCollectionStruct extends ValueObject |
12 | 12 | { |
@@ -4,12 +4,12 @@ |
||
4 | 4 | |
5 | 5 | namespace Netgen\InformationCollection\API; |
6 | 6 | |
7 | -use eZ\Publish\Core\MVC\Symfony\View\ContentValueView; |
|
8 | -use eZ\Publish\Core\MVC\Symfony\View\LocationValueView; |
|
9 | 7 | use Netgen\InformationCollection\API\Form\DynamicFormBuilderInterface; |
10 | 8 | use Netgen\InformationCollection\API\Value\DataTransfer\AdditionalContent; |
11 | 9 | use Netgen\InformationCollection\API\Value\Event\InformationCollected; |
12 | 10 | use Symfony\Component\HttpFoundation\Request; |
11 | +use eZ\Publish\Core\MVC\Symfony\View\ContentValueView; |
|
12 | +use eZ\Publish\Core\MVC\Symfony\View\LocationValueView; |
|
13 | 13 | |
14 | 14 | trait InformationCollectionTrait |
15 | 15 | { |
@@ -114,6 +114,9 @@ |
||
114 | 114 | ); |
115 | 115 | } |
116 | 116 | |
117 | + /** |
|
118 | + * @param integer $userId |
|
119 | + */ |
|
117 | 120 | private function getUser($userId) |
118 | 121 | { |
119 | 122 | try { |
@@ -6,18 +6,18 @@ |
||
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\Core\Repository\Values\ContentType\ContentType as CoreContentType; |
|
15 | 9 | use Netgen\InformationCollection\API\Value\Attribute; |
16 | 10 | use Netgen\InformationCollection\API\Value\AttributeValue; |
17 | 11 | use Netgen\InformationCollection\API\Value\Collection; |
18 | 12 | use Netgen\InformationCollection\API\Value\Content; |
19 | 13 | use Netgen\InformationCollection\Doctrine\Entity\EzInfoCollection; |
20 | 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\Content\Content as APIContent; |
|
19 | +use eZ\Publish\API\Repository\Values\Content\Field; |
|
20 | +use eZ\Publish\Core\Repository\Values\ContentType\ContentType as CoreContentType; |
|
21 | 21 | |
22 | 22 | final class DomainObjectMapper |
23 | 23 | { |
@@ -2,6 +2,9 @@ discard block |
||
2 | 2 | |
3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\Command; |
4 | 4 | |
5 | +use DateInterval; |
|
6 | +use DateTime; |
|
7 | +use Exception; |
|
5 | 8 | use Netgen\InformationCollection\Core\Persistence\Anonymizer\AnonymizerServiceFacade; |
6 | 9 | use Symfony\Component\Console\Command\Command; |
7 | 10 | use Symfony\Component\Console\Command\HelpCommand; |
@@ -10,9 +13,6 @@ discard block |
||
10 | 13 | use Symfony\Component\Console\Input\InputOption; |
11 | 14 | use Symfony\Component\Console\Output\OutputInterface; |
12 | 15 | use Symfony\Component\Console\Question\ConfirmationQuestion; |
13 | -use DateInterval; |
|
14 | -use DateTime; |
|
15 | -use Exception; |
|
16 | 16 | |
17 | 17 | class DataAnonymizerCommand extends Command |
18 | 18 | { |
@@ -2,11 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\DependencyInjection; |
4 | 4 | |
5 | -use eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\Configuration as SiteAccessConfiguration; |
|
5 | +use Netgen\InformationCollection\API\ConfigurationConstants; |
|
6 | 6 | use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; |
7 | -use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
|
8 | 7 | use Symfony\Component\Config\Definition\Builder\NodeBuilder; |
9 | -use Netgen\InformationCollection\API\ConfigurationConstants; |
|
8 | +use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
|
9 | +use eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\Configuration as SiteAccessConfiguration; |
|
10 | 10 | |
11 | 11 | /** |
12 | 12 | * This is the class that validates and merges configuration from your app/config files. |
@@ -2,15 +2,15 @@ |
||
2 | 2 | |
3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\DependencyInjection; |
4 | 4 | |
5 | -use eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\ConfigurationProcessor; |
|
6 | 5 | use Netgen\InformationCollection\API\ConfigurationConstants; |
7 | 6 | use Symfony\Component\Config\FileLocator; |
7 | +use Symfony\Component\Config\Resource\FileResource; |
|
8 | 8 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
9 | 9 | use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface; |
10 | 10 | use Symfony\Component\DependencyInjection\Loader; |
11 | 11 | use Symfony\Component\HttpKernel\DependencyInjection\Extension; |
12 | -use Symfony\Component\Config\Resource\FileResource; |
|
13 | 12 | use Symfony\Component\Yaml\Yaml; |
13 | +use eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\ConfigurationProcessor; |
|
14 | 14 | use function array_merge; |
15 | 15 | |
16 | 16 | /** |
@@ -5,13 +5,13 @@ |
||
5 | 5 | namespace Netgen\InformationCollection\Core\Factory; |
6 | 6 | |
7 | 7 | use function array_key_exists; |
8 | -use eZ\Publish\API\Repository\Values\Content\Field; |
|
9 | -use Netgen\InformationCollection\API\Constants; |
|
10 | 8 | use Netgen\InformationCollection\API\ConfigurationConstants; |
9 | +use Netgen\InformationCollection\API\Constants; |
|
11 | 10 | use Netgen\InformationCollection\API\Exception\MissingValueException; |
12 | 11 | use Netgen\InformationCollection\API\Value\DataTransfer\EmailContent; |
13 | 12 | use Netgen\InformationCollection\API\Value\DataTransfer\TemplateContent; |
14 | 13 | use Netgen\InformationCollection\API\Value\Event\InformationCollected; |
14 | +use eZ\Publish\API\Repository\Values\Content\Field; |
|
15 | 15 | use function trim; |
16 | 16 | |
17 | 17 | class AutoResponderDataFactory extends EmailDataFactory |
@@ -4,9 +4,6 @@ discard block |
||
4 | 4 | |
5 | 5 | namespace Netgen\InformationCollection\Core\Service; |
6 | 6 | |
7 | -use eZ\Publish\API\Repository\Exceptions\NotFoundException; |
|
8 | -use eZ\Publish\API\Repository\Repository; |
|
9 | -use eZ\Publish\API\Repository\Values\User\UserReference; |
|
10 | 7 | use Netgen\InformationCollection\API\Exception\PersistingFailedException; |
11 | 8 | use Netgen\InformationCollection\API\Exception\StoringAttributeFailedException; |
12 | 9 | use Netgen\InformationCollection\API\Exception\StoringCollectionFailedException; |
@@ -31,6 +28,8 @@ discard block |
||
31 | 28 | use Netgen\InformationCollection\Core\Persistence\Gateway\DoctrineDatabase; |
32 | 29 | use Netgen\InformationCollection\Doctrine\Repository\EzInfoCollectionAttributeRepository; |
33 | 30 | use Netgen\InformationCollection\Doctrine\Repository\EzInfoCollectionRepository; |
31 | +use eZ\Publish\API\Repository\Exceptions\NotFoundException; |
|
32 | +use eZ\Publish\API\Repository\Repository; |
|
34 | 33 | |
35 | 34 | class InformationCollectionService implements InformationCollection |
36 | 35 | { |