@@ -122,6 +122,9 @@ |
||
| 122 | 122 | ); |
| 123 | 123 | } |
| 124 | 124 | |
| 125 | + /** |
|
| 126 | + * @param integer $userId |
|
| 127 | + */ |
|
| 125 | 128 | private function getUser($userId): User |
| 126 | 129 | { |
| 127 | 130 | try { |
@@ -6,14 +6,6 @@ discard block |
||
| 6 | 6 | |
| 7 | 7 | use DateTimeImmutable; |
| 8 | 8 | use DateTimeInterface; |
| 9 | -use eZ\Publish\API\Repository\Exceptions\NotFoundException; |
|
| 10 | -use eZ\Publish\API\Repository\Repository; |
|
| 11 | -use eZ\Publish\API\Repository\Values\Content\Content as APIContent; |
|
| 12 | -use eZ\Publish\API\Repository\Values\Content\Field; |
|
| 13 | -use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; |
|
| 14 | -use eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCollection; |
|
| 15 | -use eZ\Publish\API\Repository\Values\User\User; |
|
| 16 | -use eZ\Publish\Core\Repository\Values\ContentType\ContentType as CoreContentType; |
|
| 17 | 9 | use Netgen\InformationCollection\API\Value\Attribute; |
| 18 | 10 | use Netgen\InformationCollection\API\Value\AttributeValue; |
| 19 | 11 | use Netgen\InformationCollection\API\Value\Collection; |
@@ -21,6 +13,14 @@ discard block |
||
| 21 | 13 | use Netgen\InformationCollection\API\Value\NullUser; |
| 22 | 14 | use Netgen\InformationCollection\Doctrine\Entity\EzInfoCollection; |
| 23 | 15 | use Netgen\InformationCollection\Doctrine\Entity\EzInfoCollectionAttribute; |
| 16 | +use eZ\Publish\API\Repository\Exceptions\NotFoundException; |
|
| 17 | +use eZ\Publish\API\Repository\Repository; |
|
| 18 | +use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; |
|
| 19 | +use eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCollection; |
|
| 20 | +use eZ\Publish\API\Repository\Values\Content\Content as APIContent; |
|
| 21 | +use eZ\Publish\API\Repository\Values\Content\Field; |
|
| 22 | +use eZ\Publish\API\Repository\Values\User\User; |
|
| 23 | +use eZ\Publish\Core\Repository\Values\ContentType\ContentType as CoreContentType; |
|
| 24 | 24 | |
| 25 | 25 | final class DomainObjectMapper |
| 26 | 26 | { |
@@ -33,7 +33,6 @@ |
||
| 33 | 33 | * CaptchaService constructor. |
| 34 | 34 | * |
| 35 | 35 | * @param \eZ\Publish\API\Repository\ContentTypeService $contentTypeService |
| 36 | - * @param array $config |
|
| 37 | 36 | */ |
| 38 | 37 | public function __construct(ContentTypeService $contentTypeService, ConfigResolverInterface $configResolver) |
| 39 | 38 | { |
@@ -4,14 +4,14 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Netgen\InformationCollection\Core\Service; |
| 6 | 6 | |
| 7 | -use eZ\Publish\API\Repository\ContentTypeService; |
|
| 8 | -use eZ\Publish\API\Repository\Values\Content\Location; |
|
| 9 | -use eZ\Publish\API\Repository\Values\ContentType\ContentType; |
|
| 10 | -use eZ\Publish\Core\MVC\ConfigResolverInterface; |
|
| 11 | 7 | use Netgen\InformationCollection\API\Service\CaptchaService as CaptchaServiceInterface; |
| 12 | 8 | use Netgen\InformationCollection\API\Service\CaptchaValue; |
| 13 | -use Netgen\InformationCollection\API\Value\Captcha\ReCaptcha; |
|
| 14 | 9 | use Netgen\InformationCollection\API\Value\Captcha\NullObject; |
| 10 | +use Netgen\InformationCollection\API\Value\Captcha\ReCaptcha; |
|
| 11 | +use eZ\Publish\API\Repository\ContentTypeService; |
|
| 12 | +use eZ\Publish\API\Repository\Values\ContentType\ContentType; |
|
| 13 | +use eZ\Publish\API\Repository\Values\Content\Location; |
|
| 14 | +use eZ\Publish\Core\MVC\ConfigResolverInterface; |
|
| 15 | 15 | |
| 16 | 16 | class CaptchaService implements CaptchaServiceInterface |
| 17 | 17 | { |
@@ -2,17 +2,17 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Netgen\InformationCollection; |
| 4 | 4 | |
| 5 | -use eZ\Publish\API\Repository\ContentTypeService; |
|
| 6 | -use eZ\Publish\API\Repository\Values\Content\Content; |
|
| 7 | -use eZ\Publish\API\Repository\Values\Content\Location; |
|
| 5 | +use Netgen\Bundle\InformationCollectionBundle\EzPlatform\RepositoryForms\InformationCollectionMapper; |
|
| 6 | +use Netgen\Bundle\InformationCollectionBundle\EzPlatform\RepositoryForms\InformationCollectionType; |
|
| 8 | 7 | use Netgen\InformationCollection\API\Events; |
| 9 | 8 | use Netgen\InformationCollection\API\Value\Event\InformationCollected; |
| 10 | 9 | use Netgen\InformationCollection\API\Value\InformationCollectionStruct; |
| 11 | -use Netgen\Bundle\InformationCollectionBundle\EzPlatform\RepositoryForms\InformationCollectionMapper; |
|
| 12 | -use Netgen\Bundle\InformationCollectionBundle\EzPlatform\RepositoryForms\InformationCollectionType; |
|
| 13 | 10 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
| 14 | 11 | use Symfony\Component\Form\FormFactoryInterface; |
| 15 | 12 | use Symfony\Component\Form\FormInterface; |
| 13 | +use eZ\Publish\API\Repository\ContentTypeService; |
|
| 14 | +use eZ\Publish\API\Repository\Values\Content\Content; |
|
| 15 | +use eZ\Publish\API\Repository\Values\Content\Location; |
|
| 16 | 16 | |
| 17 | 17 | final class Handler |
| 18 | 18 | { |