@@ -4,13 +4,13 @@ |
||
4 | 4 | |
5 | 5 | namespace Netgen\Bundle\InformationCollectionBundle\DataCollector; |
6 | 6 | |
7 | -use eZ\Publish\API\Repository\Repository; |
|
8 | -use eZ\Publish\API\Repository\Values\ContentType\ContentType; |
|
9 | -use eZ\Publish\Core\Helper\TranslationHelper; |
|
7 | +use Netgen\Bundle\InformationCollectionBundle\EzPlatform\RepositoryForms\InformationCollectionType; |
|
10 | 8 | use Symfony\Component\HttpFoundation\Request; |
11 | 9 | use Symfony\Component\HttpFoundation\Response; |
12 | 10 | use Symfony\Component\HttpKernel\DataCollector\DataCollector; |
13 | -use Netgen\Bundle\InformationCollectionBundle\EzPlatform\RepositoryForms\InformationCollectionType; |
|
11 | +use eZ\Publish\API\Repository\Repository; |
|
12 | +use eZ\Publish\API\Repository\Values\ContentType\ContentType; |
|
13 | +use eZ\Publish\Core\Helper\TranslationHelper; |
|
14 | 14 | |
15 | 15 | class InformationCollectionCollector extends DataCollector |
16 | 16 | { |
@@ -2,19 +2,19 @@ |
||
2 | 2 | |
3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\DependencyInjection; |
4 | 4 | |
5 | -use eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\ConfigurationProcessor; |
|
6 | -use eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\ContextualizerInterface; |
|
7 | 5 | use Netgen\InformationCollection\API\Action\ActionInterface; |
8 | 6 | use Netgen\InformationCollection\API\ConfigurationConstants; |
9 | 7 | use Symfony\Component\Config\FileLocator; |
8 | +use Symfony\Component\Config\Resource\FileResource; |
|
10 | 9 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
11 | 10 | use Symfony\Component\DependencyInjection\Definition; |
12 | 11 | use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface; |
13 | 12 | use Symfony\Component\DependencyInjection\Loader; |
14 | 13 | use Symfony\Component\DependencyInjection\Reference; |
15 | 14 | use Symfony\Component\HttpKernel\DependencyInjection\Extension; |
16 | -use Symfony\Component\Config\Resource\FileResource; |
|
17 | 15 | use Symfony\Component\Yaml\Yaml; |
16 | +use eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\ConfigurationProcessor; |
|
17 | +use eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\ContextualizerInterface; |
|
18 | 18 | use function array_merge; |
19 | 19 | |
20 | 20 | /** |
@@ -18,8 +18,7 @@ |
||
18 | 18 | /** |
19 | 19 | * Maps a ValueObject from eZ content repository to a data usable as underlying form data (e.g. create/update struct). |
20 | 20 | * |
21 | - * @param \eZ\Publish\API\Repository\Values\Content\Content $contentDraft |
|
22 | - * @param array $params |
|
21 | + * @param \eZ\Publish\API\Repository\Values\Content\Content $content |
|
23 | 22 | * |
24 | 23 | * @return InformationCollectionStruct |
25 | 24 | */ |
@@ -4,15 +4,13 @@ |
||
4 | 4 | |
5 | 5 | namespace Netgen\Bundle\InformationCollectionBundle\EzPlatform\RepositoryForms; |
6 | 6 | |
7 | -use eZ\Publish\API\Repository\Values\Content\Content; |
|
8 | -use eZ\Publish\API\Repository\Values\Content\Location; |
|
7 | +use EzSystems\EzPlatformContentForms\Data\Content\FieldData; |
|
8 | +use Netgen\InformationCollection\API\Value\InformationCollectionStruct; |
|
9 | 9 | use eZ\Publish\API\Repository\Values\ContentType\ContentType; |
10 | 10 | use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; |
11 | +use eZ\Publish\API\Repository\Values\Content\Content; |
|
12 | +use eZ\Publish\API\Repository\Values\Content\Location; |
|
11 | 13 | use eZ\Publish\API\Repository\Values\ValueObject; |
12 | -use Netgen\InformationCollection\API\Value\InformationCollectionStruct; |
|
13 | -use Symfony\Component\OptionsResolver\OptionsResolver; |
|
14 | -use EzSystems\EzPlatformContentForms\Data\Mapper\FormDataMapperInterface; |
|
15 | -use EzSystems\EzPlatformContentForms\Data\Content\FieldData; |
|
16 | 14 | |
17 | 15 | final class InformationCollectionMapper |
18 | 16 | { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | namespace Netgen\Bundle\InformationCollectionBundle\EzPlatform\RepositoryForms; |
6 | 6 | |
7 | -use eZ\Publish\Core\MVC\ConfigResolverInterface; |
|
8 | 7 | use Netgen\Bundle\InformationCollectionBundle\Form\CaptchaType; |
9 | 8 | use Netgen\InformationCollection\API\Service\CaptchaService; |
10 | 9 | use Netgen\InformationCollection\API\Value\InformationCollectionStruct; |
@@ -3,14 +3,13 @@ |
||
3 | 3 | |
4 | 4 | namespace Netgen\Bundle\InformationCollectionBundle\Listener; |
5 | 5 | |
6 | -use Netgen\InformationCollection\API\Value\InformationCollectionStruct; |
|
7 | 6 | use Netgen\InformationCollection\Core\Service\CaptchaService; |
8 | 7 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
8 | +use Symfony\Component\Form\FormError; |
|
9 | 9 | use Symfony\Component\Form\FormEvent; |
10 | 10 | use Symfony\Component\Form\FormEvents; |
11 | -use Symfony\Component\Form\FormError; |
|
12 | -use Symfony\Component\HttpFoundation\RequestStack; |
|
13 | 11 | use Symfony\Component\HttpFoundation\Request; |
12 | +use Symfony\Component\HttpFoundation\RequestStack; |
|
14 | 13 | use Symfony\Contracts\Translation\TranslatorInterface; |
15 | 14 | |
16 | 15 | class CaptchaValidationListener implements EventSubscriberInterface |
@@ -19,7 +19,7 @@ |
||
19 | 19 | * @param \eZ\Publish\Core\MVC\Symfony\View\ContentValueView $view |
20 | 20 | * @param array $options |
21 | 21 | * |
22 | - * @return array |
|
22 | + * @return ContentValueView |
|
23 | 23 | */ |
24 | 24 | protected function collectInformation(ContentValueView $view, array $options): ContentValueView |
25 | 25 | { |
@@ -4,12 +4,12 @@ |
||
4 | 4 | |
5 | 5 | namespace Netgen\InformationCollection\API; |
6 | 6 | |
7 | +use Netgen\InformationCollection\Handler; |
|
8 | +use Symfony\Component\HttpFoundation\RequestStack; |
|
7 | 9 | use eZ\Publish\Core\MVC\Symfony\View\BaseView; |
8 | 10 | use eZ\Publish\Core\MVC\Symfony\View\CachableView; |
9 | 11 | use eZ\Publish\Core\MVC\Symfony\View\ContentValueView; |
10 | 12 | use eZ\Publish\Core\MVC\Symfony\View\LocationValueView; |
11 | -use Netgen\InformationCollection\Handler; |
|
12 | -use Symfony\Component\HttpFoundation\RequestStack; |
|
13 | 13 | |
14 | 14 | trait InformationCollectionTrait |
15 | 15 | { |
@@ -32,7 +32,6 @@ |
||
32 | 32 | * InformationCollected constructor. |
33 | 33 | * |
34 | 34 | * @param \Netgen\InformationCollection\API\Value\InformationCollectionStruct $struct |
35 | - * @param \eZ\Publish\API\Repository\Values\Content\Location $location |
|
36 | 35 | * @param array $options |
37 | 36 | */ |
38 | 37 | public function __construct( |
@@ -4,12 +4,12 @@ |
||
4 | 4 | |
5 | 5 | namespace Netgen\InformationCollection\API\Value\Event; |
6 | 6 | |
7 | -use eZ\Publish\API\Repository\Values\Content\Content; |
|
8 | -use eZ\Publish\API\Repository\Values\Content\Location; |
|
9 | -use eZ\Publish\API\Repository\Values\ContentType\ContentType; |
|
10 | -use eZ\Publish\API\Repository\Values\Content\ContentInfo; |
|
11 | 7 | use Netgen\InformationCollection\API\Value\InformationCollectionStruct; |
12 | 8 | use Symfony\Contracts\EventDispatcher\Event; |
9 | +use eZ\Publish\API\Repository\Values\ContentType\ContentType; |
|
10 | +use eZ\Publish\API\Repository\Values\Content\Content; |
|
11 | +use eZ\Publish\API\Repository\Values\Content\ContentInfo; |
|
12 | +use eZ\Publish\API\Repository\Values\Content\Location; |
|
13 | 13 | |
14 | 14 | final class InformationCollected extends Event |
15 | 15 | { |
@@ -4,10 +4,10 @@ |
||
4 | 4 | |
5 | 5 | namespace Netgen\InformationCollection\API\Value; |
6 | 6 | |
7 | +use EzSystems\RepositoryForms\Data\Content\FieldData; |
|
8 | +use eZ\Publish\API\Repository\Values\ContentType\ContentType; |
|
7 | 9 | use eZ\Publish\API\Repository\Values\Content\Content; |
8 | 10 | use eZ\Publish\API\Repository\Values\Content\Location; |
9 | -use eZ\Publish\API\Repository\Values\ContentType\ContentType; |
|
10 | -use EzSystems\RepositoryForms\Data\Content\FieldData; |
|
11 | 11 | |
12 | 12 | final class InformationCollectionStruct extends ValueObject |
13 | 13 | { |
@@ -34,7 +34,6 @@ |
||
34 | 34 | /** |
35 | 35 | * EmailDataFactory constructor. |
36 | 36 | * |
37 | - * @param array $config |
|
38 | 37 | * @param \eZ\Publish\Core\Helper\TranslationHelper $translationHelper |
39 | 38 | * @param \eZ\Publish\Core\Helper\FieldHelper $fieldHelper |
40 | 39 | * @param \Twig\Environment $twig |
@@ -2,12 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace Netgen\InformationCollection\Core\EmailDataProvider; |
4 | 4 | |
5 | -use eZ\Publish\Core\Helper\FieldHelper; |
|
6 | -use eZ\Publish\Core\Helper\TranslationHelper; |
|
7 | -use eZ\Publish\Core\MVC\ConfigResolverInterface; |
|
8 | 5 | use Netgen\InformationCollection\API\Action\EmailDataProviderInterface; |
9 | 6 | use Netgen\InformationCollection\Core\Action\EmailAction; |
10 | 7 | use Twig\Environment; |
8 | +use eZ\Publish\Core\Helper\FieldHelper; |
|
9 | +use eZ\Publish\Core\Helper\TranslationHelper; |
|
10 | +use eZ\Publish\Core\MVC\ConfigResolverInterface; |
|
11 | 11 | |
12 | 12 | abstract class AbstractProvider implements EmailDataProviderInterface |
13 | 13 | { |