@@ -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,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; |
|
7 | -use Netgen\InformationCollection\API\Service\Exporter; |
|
5 | +use League\Csv\Writer; |
|
8 | 6 | use Netgen\Bundle\InformationCollectionBundle\API\Value\Export\ExportCriteria; |
9 | 7 | use Netgen\Bundle\InformationCollectionBundle\Form\Type\ExportType; |
10 | -use Symfony\Component\HttpFoundation\Request; |
|
11 | -use League\Csv\Writer; |
|
8 | +use Netgen\InformationCollection\API\Service\Exporter; |
|
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 | { |
@@ -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. |
@@ -14,16 +14,14 @@ |
||
14 | 14 | /** |
15 | 15 | * Creates Information collection Form object for given Location object. |
16 | 16 | * |
17 | - * @param \eZ\Publish\API\Repository\Values\Content\Location $location |
|
18 | 17 | * |
19 | - * @return \Symfony\Component\Form\FormBuilderInterface |
|
18 | + * @return FormInterface |
|
20 | 19 | */ |
21 | 20 | public function createForm(Content $content): FormInterface; |
22 | 21 | |
23 | 22 | /** |
24 | 23 | * Creates Information collection Form object for given Location object. |
25 | 24 | * |
26 | - * @param \eZ\Publish\API\Repository\Values\Content\Location $location |
|
27 | 25 | * |
28 | 26 | * @return \Symfony\Component\Form\FormBuilderInterface |
29 | 27 | */ |
@@ -4,10 +4,10 @@ |
||
4 | 4 | |
5 | 5 | namespace Netgen\InformationCollection\API\Form; |
6 | 6 | |
7 | -use eZ\Publish\API\Repository\Values\Content\Content; |
|
8 | -use eZ\Publish\API\Repository\Values\Content\Location; |
|
9 | 7 | use Symfony\Component\Form\FormBuilderInterface; |
10 | 8 | use Symfony\Component\Form\FormInterface; |
9 | +use eZ\Publish\API\Repository\Values\Content\Content; |
|
10 | +use eZ\Publish\API\Repository\Values\Content\Location; |
|
11 | 11 | |
12 | 12 | interface DynamicFormBuilderInterface |
13 | 13 | { |
@@ -2,12 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace Netgen\InformationCollection\API; |
4 | 4 | |
5 | +use Netgen\InformationCollection\API\Value\Event\InformationCollected; |
|
5 | 6 | use eZ\Publish\Core\MVC\Symfony\View\ContentValueView; |
6 | 7 | use eZ\Publish\Core\MVC\Symfony\View\LocationValueView; |
7 | -use Netgen\InformationCollection\API\Value\Event\InformationCollected; |
|
8 | 8 | //use Netgen\InformationCollection\API\Events; |
9 | -use Symfony\Component\HttpFoundation\Request; |
|
10 | 9 | use Netgen\InformationCollection\API\Form\DynamicFormBuilderInterface; |
10 | +use Symfony\Component\HttpFoundation\Request; |
|
11 | 11 | |
12 | 12 | trait InformationCollectionTrait |
13 | 13 | { |
@@ -5,18 +5,17 @@ |
||
5 | 5 | namespace Netgen\InformationCollection\Core\Action; |
6 | 6 | |
7 | 7 | use Doctrine\DBAL\DBALException; |
8 | -use eZ\Publish\API\Repository\Repository; |
|
9 | -use eZ\Publish\Core\Repository\Values\Content\Content; |
|
10 | -use Netgen\InformationCollection\Doctrine\Entity\EzInfoCollection; |
|
11 | -use Netgen\InformationCollection\API\Value\Event\InformationCollected; |
|
12 | 8 | use Netgen\InformationCollection\API\Exception\ActionFailedException; |
9 | +use Netgen\InformationCollection\API\Value\Event\InformationCollected; |
|
13 | 10 | use Netgen\InformationCollection\Core\Factory\FieldDataFactory; |
11 | +use Netgen\InformationCollection\Doctrine\Entity\EzInfoCollection; |
|
14 | 12 | use Netgen\InformationCollection\Doctrine\Repository\EzInfoCollectionAttributeRepository; |
15 | 13 | use Netgen\InformationCollection\Doctrine\Repository\EzInfoCollectionRepository; |
14 | +use eZ\Publish\API\Repository\Repository; |
|
15 | +use eZ\Publish\Core\Repository\Values\Content\Content; |
|
16 | 16 | |
17 | 17 | use Netgen\InformationCollection\API\Action\ActionInterface; |
18 | 18 | use Netgen\InformationCollection\API\Action\CrucialActionInterface; |
19 | -use Netgen\InformationCollection\API\Value\Legacy\FieldValue; |
|
20 | 19 | |
21 | 20 | class DatabaseAction implements ActionInterface, CrucialActionInterface |
22 | 21 | { |
@@ -5,8 +5,8 @@ |
||
5 | 5 | namespace Netgen\InformationCollection\Core\Mailer; |
6 | 6 | |
7 | 7 | use Netgen\InformationCollection\API\Exception\EmailNotSentException; |
8 | -use Netgen\InformationCollection\API\Value\DataTransfer\EmailContent; |
|
9 | 8 | use Netgen\InformationCollection\API\Mailer\MailerInterface; |
9 | +use Netgen\InformationCollection\API\Value\DataTransfer\EmailContent; |
|
10 | 10 | |
11 | 11 | class Mailer implements MailerInterface |
12 | 12 | { |
@@ -4,13 +4,13 @@ |
||
4 | 4 | |
5 | 5 | namespace Netgen\Bundle\InformationCollectionBundle\Core\Persistence\Anonymizer; |
6 | 6 | |
7 | -use eZ\Publish\API\Repository\Repository; |
|
8 | -use eZ\Publish\API\Repository\Values\ContentType\ContentType; |
|
9 | 7 | use Netgen\Bundle\InformationCollectionBundle\API\Persistence\Anonymizer\Anonymizer; |
10 | 8 | use Netgen\Bundle\InformationCollectionBundle\API\Persistence\Anonymizer\Visitor\FieldAnonymizerVisitor; |
11 | 9 | use Netgen\Bundle\InformationCollectionBundle\Entity\EzInfoCollection; |
12 | 10 | use Netgen\Bundle\InformationCollectionBundle\Repository\EzInfoCollectionAttributeRepository; |
13 | 11 | use Netgen\Bundle\InformationCollectionBundle\Repository\EzInfoCollectionRepository; |
12 | +use eZ\Publish\API\Repository\Repository; |
|
13 | +use eZ\Publish\API\Repository\Values\ContentType\ContentType; |
|
14 | 14 | |
15 | 15 | class AnonymizerService implements Anonymizer |
16 | 16 | { |