@@ -2,14 +2,14 @@ |
||
2 | 2 | |
3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\DependencyInjection; |
4 | 4 | |
5 | -use eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\ConfigurationProcessor; |
|
6 | 5 | use Symfony\Component\Config\FileLocator; |
6 | +use Symfony\Component\Config\Resource\FileResource; |
|
7 | 7 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
8 | 8 | use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface; |
9 | 9 | use Symfony\Component\DependencyInjection\Loader; |
10 | 10 | use Symfony\Component\HttpKernel\DependencyInjection\Extension; |
11 | -use Symfony\Component\Config\Resource\FileResource; |
|
12 | 11 | use Symfony\Component\Yaml\Yaml; |
12 | +use eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\ConfigurationProcessor; |
|
13 | 13 | use function array_merge; |
14 | 14 | |
15 | 15 | /** |
@@ -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 Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; |
6 | 9 | use Symfony\Component\Console\Command\HelpCommand; |
7 | 10 | use Symfony\Component\Console\Input\InputDefinition; |
@@ -9,9 +12,6 @@ discard block |
||
9 | 12 | use Symfony\Component\Console\Input\InputOption; |
10 | 13 | use Symfony\Component\Console\Output\OutputInterface; |
11 | 14 | use Symfony\Component\Console\Question\ConfirmationQuestion; |
12 | -use DateInterval; |
|
13 | -use DateTime; |
|
14 | -use Exception; |
|
15 | 15 | |
16 | 16 | class DataAnonymizerCommand extends ContainerAwareCommand |
17 | 17 | { |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\DependencyInjection; |
4 | 4 | |
5 | -use eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\Configuration as SiteAccessConfiguration; |
|
6 | -use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
|
7 | 5 | use Symfony\Component\Config\Definition\Builder\NodeBuilder; |
6 | +use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
|
7 | +use eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\Configuration as SiteAccessConfiguration; |
|
8 | 8 | |
9 | 9 | /** |
10 | 10 | * This is the class that validates and merges configuration from your app/config files. |
@@ -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,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\InformationCollection\Form\Builder; |
4 | 4 | |
5 | -use eZ\Publish\API\Repository\ContentTypeService; |
|
6 | -use eZ\Publish\API\Repository\Values\Content\Content; |
|
5 | +use Netgen\InformationCollection\API\Form\DynamicFormBuilderInterface; |
|
7 | 6 | use Netgen\InformationCollection\Integration\RepositoryForms\InformationCollectionMapper; |
8 | 7 | use Netgen\InformationCollection\Integration\RepositoryForms\InformationCollectionType; |
9 | 8 | use Symfony\Component\Form\FormBuilderInterface; |
10 | 9 | use Symfony\Component\Form\FormFactoryInterface; |
11 | 10 | use Symfony\Component\Form\FormInterface; |
12 | 11 | use Symfony\Component\Routing\RouterInterface; |
13 | -use Netgen\InformationCollection\API\Form\DynamicFormBuilderInterface; |
|
12 | +use eZ\Publish\API\Repository\ContentTypeService; |
|
13 | +use eZ\Publish\API\Repository\Values\Content\Content; |
|
14 | 14 | |
15 | 15 | class FormBuilder implements DynamicFormBuilderInterface |
16 | 16 | { |
@@ -2,11 +2,6 @@ discard block |
||
2 | 2 | |
3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\Controller\Admin; |
4 | 4 | |
5 | -use eZ\Publish\API\Repository\Values\Content\Content; |
|
6 | -use eZ\Publish\Core\MVC\Symfony\Security\Authorization\Attribute; |
|
7 | -use eZ\Bundle\EzPublishCoreBundle\Controller; |
|
8 | -use eZ\Publish\API\Repository\ContentService; |
|
9 | -use eZ\Publish\Core\MVC\ConfigResolverInterface; |
|
10 | 5 | use Netgen\InformationCollection\API\Persistence\Anonymizer\Anonymizer; |
11 | 6 | use Netgen\InformationCollection\API\Service\InformationCollection; |
12 | 7 | use Netgen\InformationCollection\API\Value\Collection; |
@@ -22,6 +17,11 @@ discard block |
||
22 | 17 | use Pagerfanta\Adapter\AdapterInterface; |
23 | 18 | use Pagerfanta\Pagerfanta; |
24 | 19 | use Symfony\Component\HttpFoundation\Request; |
20 | +use eZ\Bundle\EzPublishCoreBundle\Controller; |
|
21 | +use eZ\Publish\API\Repository\ContentService; |
|
22 | +use eZ\Publish\API\Repository\Values\Content\Content; |
|
23 | +use eZ\Publish\Core\MVC\ConfigResolverInterface; |
|
24 | +use eZ\Publish\Core\MVC\Symfony\Security\Authorization\Attribute; |
|
25 | 25 | |
26 | 26 | class AdminController extends Controller |
27 | 27 | { |
@@ -2,16 +2,16 @@ |
||
2 | 2 | |
3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\Controller\Admin; |
4 | 4 | |
5 | -use eZ\Publish\Core\MVC\Symfony\Security\Authorization\Attribute; |
|
6 | -use eZ\Bundle\EzPublishCoreBundle\Controller; |
|
7 | -use eZ\Publish\API\Repository\ContentService; |
|
5 | +use League\Csv\Writer; |
|
8 | 6 | use Netgen\InformationCollection\API\Service\Exporter; |
9 | 7 | use Netgen\InformationCollection\API\Value\Export\ExportCriteria; |
10 | 8 | use Netgen\InformationCollection\Form\Type\ExportType; |
11 | -use Symfony\Component\HttpFoundation\Request; |
|
12 | -use League\Csv\Writer; |
|
13 | 9 | use SplTempFileObject; |
10 | +use Symfony\Component\HttpFoundation\Request; |
|
14 | 11 | use Symfony\Component\HttpFoundation\Response; |
12 | +use eZ\Bundle\EzPublishCoreBundle\Controller; |
|
13 | +use eZ\Publish\API\Repository\ContentService; |
|
14 | +use eZ\Publish\Core\MVC\Symfony\Security\Authorization\Attribute; |
|
15 | 15 | |
16 | 16 | final class ExportController extends Controller |
17 | 17 | { |
@@ -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 | { |