@@ -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,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 | { |
@@ -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 | { |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * |
50 | 50 | * @param int $contentId Content id |
51 | 51 | * @param array $fields Fields list |
52 | - * @param DateTime|null $date Anonymize collections older that this date |
|
52 | + * @param null|\DateTimeImmutable $date Anonymize collections older that this date |
|
53 | 53 | * |
54 | 54 | * @return int |
55 | 55 | */ |
@@ -73,9 +73,8 @@ discard block |
||
73 | 73 | /** |
74 | 74 | * Map field id's to list of field identifiers. |
75 | 75 | * |
76 | - * @param int $content |
|
77 | 76 | * @param array $fieldIdentifiers |
78 | - * @param mixed $contentId |
|
77 | + * @param integer $contentId |
|
79 | 78 | * |
80 | 79 | * @return array |
81 | 80 | */ |
@@ -93,6 +92,9 @@ discard block |
||
93 | 92 | return $ids; |
94 | 93 | } |
95 | 94 | |
95 | + /** |
|
96 | + * @param integer $contentId |
|
97 | + */ |
|
96 | 98 | private function getCollections($contentId, \DateTimeImmutable $date = null) |
97 | 99 | { |
98 | 100 | if (null === $date) { |
@@ -41,8 +41,6 @@ |
||
41 | 41 | * |
42 | 42 | * @param FormFactoryInterface $formFactory |
43 | 43 | * @param ContentTypeService $contentTypeService |
44 | - * @param RouterInterface $router |
|
45 | - * @param bool $useCsrf |
|
46 | 44 | */ |
47 | 45 | public function __construct(FormFactoryInterface $formFactory, ContentTypeService $contentTypeService) |
48 | 46 | { |
@@ -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 | { |
@@ -4,13 +4,12 @@ |
||
4 | 4 | |
5 | 5 | namespace Netgen\InformationCollection\Integration\RepositoryForms; |
6 | 6 | |
7 | -use eZ\Publish\API\Repository\Values\ContentType\ContentType; |
|
8 | -use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; |
|
9 | -use eZ\Publish\API\Repository\Values\ValueObject; |
|
10 | -use eZ\Publish\SPI\Search\Field; |
|
11 | 7 | use EzSystems\RepositoryForms\Data\Content\FieldData; |
12 | 8 | use EzSystems\RepositoryForms\Data\Mapper\FormDataMapperInterface; |
13 | 9 | use Symfony\Component\OptionsResolver\OptionsResolver; |
10 | +use eZ\Publish\API\Repository\Values\ContentType\ContentType; |
|
11 | +use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; |
|
12 | +use eZ\Publish\API\Repository\Values\ValueObject; |
|
14 | 13 | |
15 | 14 | class InformationCollectionMapper implements FormDataMapperInterface |
16 | 15 | { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | namespace Netgen\InformationCollection\Integration\RepositoryForms; |
6 | 6 | |
7 | -use eZ\Publish\API\Repository\Values\Content\ContentStruct; |
|
8 | 7 | use EzSystems\RepositoryForms\Form\Type\Content\BaseContentType; |
9 | 8 | use Symfony\Component\Form\AbstractType; |
10 | 9 | use Symfony\Component\Form\Extension\Core\Type\SubmitType; |
@@ -2,13 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace Netgen\Bundle\InformationCollectionBundle\Controller\Admin; |
4 | 4 | |
5 | -use eZ\Bundle\EzPublishCoreBundle\Controller; |
|
6 | 5 | use Netgen\InformationCollection\API\Service\InformationCollection; |
7 | 6 | use Netgen\InformationCollection\API\Value\Content; |
8 | 7 | use Netgen\InformationCollection\API\Value\Filter\Query; |
9 | 8 | use Symfony\Component\HttpFoundation\JsonResponse; |
10 | 9 | use Symfony\Component\Routing\RouterInterface; |
11 | 10 | use Symfony\Component\Translation\TranslatorInterface; |
11 | +use eZ\Bundle\EzPublishCoreBundle\Controller; |
|
12 | 12 | |
13 | 13 | class TreeController extends Controller |
14 | 14 | { |