@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle; |
4 | 4 | |
5 | -use eZ\Publish\Core\MVC\Symfony\View\ContentValueView; |
|
6 | -use eZ\Publish\Core\MVC\Symfony\View\LocationValueView; |
|
7 | 5 | use Netgen\Bundle\InformationCollectionBundle\Event\InformationCollected; |
8 | 6 | use Symfony\Component\HttpFoundation\Request; |
7 | +use eZ\Publish\Core\MVC\Symfony\View\ContentValueView; |
|
8 | +use eZ\Publish\Core\MVC\Symfony\View\LocationValueView; |
|
9 | 9 | |
10 | 10 | trait InformationCollectionTrait |
11 | 11 | { |
@@ -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; |
|
5 | +use League\Csv\Writer; |
|
7 | 6 | use Netgen\Bundle\InformationCollectionBundle\API\Service\Exporter; |
8 | 7 | use Netgen\Bundle\InformationCollectionBundle\API\Value\Export\ExportCriteria; |
9 | 8 | use Netgen\Bundle\InformationCollectionBundle\Form\Type\ExportType; |
10 | -use Symfony\Component\HttpFoundation\Request; |
|
11 | -use League\Csv\Writer; |
|
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 | class ExportController extends Controller |
16 | 16 | { |
@@ -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,9 +2,8 @@ discard block |
||
2 | 2 | |
3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\Action; |
4 | 4 | |
5 | +use DateTime; |
|
5 | 6 | use Doctrine\DBAL\DBALException; |
6 | -use eZ\Publish\API\Repository\Repository; |
|
7 | -use eZ\Publish\Core\Repository\Values\Content\Content; |
|
8 | 7 | use Netgen\Bundle\InformationCollectionBundle\Entity\EzInfoCollection; |
9 | 8 | use Netgen\Bundle\InformationCollectionBundle\Event\InformationCollected; |
10 | 9 | use Netgen\Bundle\InformationCollectionBundle\Exception\ActionFailedException; |
@@ -12,7 +11,8 @@ discard block |
||
12 | 11 | use Netgen\Bundle\InformationCollectionBundle\Repository\EzInfoCollectionAttributeRepository; |
13 | 12 | use Netgen\Bundle\InformationCollectionBundle\Repository\EzInfoCollectionRepository; |
14 | 13 | use Netgen\Bundle\InformationCollectionBundle\Value\LegacyData; |
15 | -use DateTime; |
|
14 | +use eZ\Publish\API\Repository\Repository; |
|
15 | +use eZ\Publish\Core\Repository\Values\Content\Content; |
|
16 | 16 | |
17 | 17 | class DatabaseAction implements ActionInterface, CrucialActionInterface |
18 | 18 | { |
@@ -2,10 +2,6 @@ discard block |
||
2 | 2 | |
3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\Factory; |
4 | 4 | |
5 | -use eZ\Publish\API\Repository\ContentService; |
|
6 | -use eZ\Publish\Core\Helper\FieldHelper; |
|
7 | -use eZ\Publish\Core\Helper\TranslationHelper; |
|
8 | -use eZ\Publish\Core\FieldType\BinaryFile\Value as BinaryFile; |
|
9 | 5 | use Netgen\Bundle\InformationCollectionBundle\Constants; |
10 | 6 | use Netgen\Bundle\InformationCollectionBundle\DependencyInjection\ConfigurationConstants; |
11 | 7 | use Netgen\Bundle\InformationCollectionBundle\Event\InformationCollected; |
@@ -14,6 +10,10 @@ discard block |
||
14 | 10 | use Netgen\Bundle\InformationCollectionBundle\Value\EmailData; |
15 | 11 | use Netgen\Bundle\InformationCollectionBundle\Value\TemplateData; |
16 | 12 | use Twig_Environment; |
13 | +use eZ\Publish\API\Repository\ContentService; |
|
14 | +use eZ\Publish\Core\FieldType\BinaryFile\Value as BinaryFile; |
|
15 | +use eZ\Publish\Core\Helper\FieldHelper; |
|
16 | +use eZ\Publish\Core\Helper\TranslationHelper; |
|
17 | 17 | use function array_key_exists; |
18 | 18 | use function trim; |
19 | 19 |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\Core\Persistence\Anonymizer; |
4 | 4 | |
5 | +use DateTime; |
|
5 | 6 | use Netgen\Bundle\InformationCollectionBundle\API\Persistence\Anonymizer\Anonymizer; |
6 | 7 | use Netgen\Bundle\InformationCollectionBundle\Core\Persistence\ContentTypeUtils; |
7 | 8 | use Netgen\Bundle\InformationCollectionBundle\Repository\EzInfoCollectionRepository; |
8 | -use DateTime; |
|
9 | 9 | use OutOfBoundsException; |
10 | 10 | |
11 | 11 | final class AnonymizerServiceFacade |
@@ -3,7 +3,6 @@ discard block |
||
3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\Core\Service; |
4 | 4 | |
5 | 5 | use Netgen\Bundle\InformationCollectionBundle\API\Service\InformationCollection; |
6 | -use eZ\Publish\API\Repository\Repository; |
|
7 | 6 | use Netgen\Bundle\InformationCollectionBundle\API\Value\InformationCollection\Attribute; |
8 | 7 | use Netgen\Bundle\InformationCollectionBundle\API\Value\InformationCollection\Collection; |
9 | 8 | use Netgen\Bundle\InformationCollectionBundle\API\Value\InformationCollection\Collections; |
@@ -14,6 +13,7 @@ discard block |
||
14 | 13 | use Netgen\Bundle\InformationCollectionBundle\Entity\EzInfoCollectionAttribute; |
15 | 14 | use Netgen\Bundle\InformationCollectionBundle\Repository\EzInfoCollectionAttributeRepository; |
16 | 15 | use Netgen\Bundle\InformationCollectionBundle\Repository\EzInfoCollectionRepository; |
16 | +use eZ\Publish\API\Repository\Repository; |
|
17 | 17 | |
18 | 18 | class InformationCollectionService implements InformationCollection |
19 | 19 | { |
@@ -2,13 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\Form\RepositoryForms; |
4 | 4 | |
5 | -use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; |
|
5 | +use EzSystems\RepositoryForms\Data\Content\FieldData; |
|
6 | 6 | use EzSystems\RepositoryForms\Data\Mapper\FormDataMapperInterface; |
7 | +use Symfony\Component\OptionsResolver\OptionsResolver; |
|
7 | 8 | use eZ\Publish\API\Repository\Values\ContentType\ContentType; |
9 | +use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; |
|
8 | 10 | use eZ\Publish\API\Repository\Values\ValueObject; |
9 | -use EzSystems\RepositoryForms\Data\Content\ContentUpdateData; |
|
10 | -use EzSystems\RepositoryForms\Data\Content\FieldData; |
|
11 | -use Symfony\Component\OptionsResolver\OptionsResolver; |
|
12 | 11 | |
13 | 12 | class InformationCollectionMapper implements FormDataMapperInterface |
14 | 13 | { |
@@ -4,8 +4,8 @@ |
||
4 | 4 | |
5 | 5 | use EzSystems\RepositoryForms\Form\Type\Content\BaseContentType; |
6 | 6 | use Symfony\Component\Form\AbstractType; |
7 | -use Symfony\Component\Form\FormBuilderInterface; |
|
8 | 7 | use Symfony\Component\Form\Extension\Core\Type\SubmitType; |
8 | +use Symfony\Component\Form\FormBuilderInterface; |
|
9 | 9 | use Symfony\Component\OptionsResolver\OptionsResolver; |
10 | 10 | |
11 | 11 | class InformationCollectionType extends AbstractType |