Skip to content

Commit 49dc73c

Browse files
author
Marijan Klaric
committed
CED-1124 move form types to Type folder
1 parent 38530c5 commit 49dc73c

File tree

6 files changed

+10
-11
lines changed

6 files changed

+10
-11
lines changed

bundle/Controller/Admin/Export/Export.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use Ibexa\Contracts\Core\Repository\ContentService;
88
use Ibexa\Core\MVC\Symfony\Security\Authorization\Attribute;
9-
use Netgen\Bundle\InformationCollectionBundle\Form\ExportType;
9+
use Netgen\Bundle\InformationCollectionBundle\Form\Type\ExportType;
1010
use Netgen\InformationCollection\API\Service\Exporter;
1111
use Netgen\InformationCollection\API\Value\Export\ExportCriteria;
1212
use Netgen\InformationCollection\Core\Export\ExportResponseFormatterRegistry;

bundle/Form/Builder/FormBuilder.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Ibexa\Core\Repository\SiteAccessAware\ContentTypeService;
1111
use Netgen\Bundle\InformationCollectionBundle\Form\DataWrapper;
1212
use Netgen\Bundle\InformationCollectionBundle\Form\Payload\InformationCollectionStruct;
13-
use Netgen\Bundle\InformationCollectionBundle\Form\InformationCollectionUpdateType;
13+
use Netgen\Bundle\InformationCollectionBundle\Form\Type\InformationCollectionUpdateType;
1414
use Netgen\InformationCollection\API\FieldHandler\CustomLegacyFieldHandlerInterface;
1515
use Netgen\InformationCollection\API\Value\Attribute;
1616
use Netgen\InformationCollection\API\Value\Collection;
@@ -20,7 +20,6 @@
2020
use Symfony\Component\Form\FormBuilderInterface;
2121
use Symfony\Component\Form\FormFactoryInterface;
2222
use Symfony\Component\Routing\RouterInterface;
23-
2423
use function sprintf;
2524

2625
class FormBuilder

bundle/Form/CaptchaType.php renamed to bundle/Form/Type/CaptchaType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Netgen\Bundle\InformationCollectionBundle\Form;
3+
namespace Netgen\Bundle\InformationCollectionBundle\Form\Type;
44

55
use Netgen\Bundle\InformationCollectionBundle\Listener\CaptchaValidationListener;
66
use Symfony\Component\Form\AbstractType;

bundle/Form/ExportType.php renamed to bundle/Form/Type/ExportType.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22

33
declare(strict_types=1);
44

5-
namespace Netgen\Bundle\InformationCollectionBundle\Form;
5+
namespace Netgen\Bundle\InformationCollectionBundle\Form\Type;
66

77
use DateTimeInterface;
88
use Netgen\InformationCollection\API\Value\Export\ExportCriteria;
99
use Netgen\InformationCollection\API\Value\Filter\ContentId;
10+
use Netgen\InformationCollection\Core\Export\ExportResponseFormatterRegistry;
1011
use Symfony\Component\Form\AbstractType;
1112
use Symfony\Component\Form\DataMapperInterface;
13+
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
1214
use Symfony\Component\Form\Extension\Core\Type\DateType;
1315
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
1416
use Symfony\Component\Form\Extension\Core\Type\IntegerType;
1517
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
16-
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
1718
use Symfony\Component\Form\FormBuilderInterface;
1819
use Symfony\Component\Form\FormError;
1920
use Symfony\Component\Form\FormEvent;
2021
use Symfony\Component\Form\FormEvents;
2122
use Symfony\Component\OptionsResolver\OptionsResolver;
2223
use Symfony\Component\Validator\Constraints as Assert;
23-
use Netgen\InformationCollection\Core\Export\ExportResponseFormatterRegistry;
2424

2525
class ExportType extends AbstractType implements DataMapperInterface
2626
{

bundle/Form/InformationCollectionUpdateType.php renamed to bundle/Form/Type/InformationCollectionUpdateType.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
declare(strict_types=1);
44

5-
namespace Netgen\Bundle\InformationCollectionBundle\Form;
5+
namespace Netgen\Bundle\InformationCollectionBundle\Form\Type;
66

77
use eZ\Publish\API\Repository\Values\ContentType\ContentType;
88
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;
9+
use Netgen\Bundle\InformationCollectionBundle\Form\DataWrapper;
10+
use Netgen\Bundle\InformationCollectionBundle\Form\FieldTypeHandlerRegistry;
911
use Netgen\Bundle\InformationCollectionBundle\Form\Payload\InformationCollectionStruct;
10-
use Netgen\Bundle\InformationCollectionBundle\Form\Type\AbstractContentType;
1112
use Netgen\InformationCollection\API\Value\Collection;
1213
use RuntimeException;
1314
use Symfony\Component\Form\DataMapperInterface;
1415
use Symfony\Component\Form\FormBuilderInterface;
1516
use Symfony\Component\OptionsResolver\OptionsResolver;
16-
1717
use function array_keys;
1818
use function in_array;
1919
use function sprintf;

bundle/Ibexa/ContentForms/InformationCollectionType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace Netgen\Bundle\InformationCollectionBundle\Ibexa\ContentForms;
66

77
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;
8-
use Netgen\Bundle\InformationCollectionBundle\Form\CaptchaType;
8+
use Netgen\Bundle\InformationCollectionBundle\Form\Type\CaptchaType;
99
use Netgen\InformationCollection\API\Service\CaptchaService;
1010
use Netgen\InformationCollection\API\Value\InformationCollectionStruct;
1111
use Symfony\Component\Form\AbstractType;

0 commit comments

Comments
 (0)