@@ -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; |
|
| 6 | +use Netgen\Bundle\InformationCollectionBundle\Form\Type\ExportType; |
|
| 7 | 7 | use Netgen\InformationCollection\API\Service\Exporter; |
| 8 | 8 | use Netgen\InformationCollection\API\Value\Export\ExportCriteria; |
| 9 | -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 | final class ExportController extends Controller |
| 16 | 16 | { |
@@ -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 | { |
@@ -39,8 +39,8 @@ discard block |
||
| 39 | 39 | /** |
| 40 | 40 | * ExporterService constructor. |
| 41 | 41 | * |
| 42 | - * @param \Netgen\Bundle\InformationCollectionBundle\Repository\EzInfoCollectionRepository $ezInfoCollectionRepository |
|
| 43 | - * @param \Netgen\Bundle\InformationCollectionBundle\Repository\EzInfoCollectionAttributeRepository $ezInfoCollectionAttributeRepository |
|
| 42 | + * @param EzInfoCollectionRepository $ezInfoCollectionRepository |
|
| 43 | + * @param EzInfoCollectionAttributeRepository $ezInfoCollectionAttributeRepository |
|
| 44 | 44 | * @param \Symfony\Component\Translation\TranslatorInterface $translator |
| 45 | 45 | * @param \Netgen\Bundle\InformationCollectionBundle\Core\Persistence\ContentTypeUtils $contentTypeUtils |
| 46 | 46 | */ |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | /** |
| 99 | 99 | * Get create date from EzInfoCollection as string. |
| 100 | 100 | * |
| 101 | - * @param \Netgen\Bundle\InformationCollectionBundle\Entity\EzInfoCollection $ezInfoCollection |
|
| 101 | + * @param EzInfoCollection $ezInfoCollection |
|
| 102 | 102 | * |
| 103 | 103 | * @return string |
| 104 | 104 | */ |
@@ -10,8 +10,8 @@ |
||
| 10 | 10 | use Netgen\Bundle\InformationCollectionBundle\Core\Persistence\ContentTypeUtils; |
| 11 | 11 | use Netgen\InformationCollection\Doctrine\Entity\EzInfoCollection; |
| 12 | 12 | use Netgen\InformationCollection\Doctrine\Entity\EzInfoCollectionAttribute; |
| 13 | -use Netgen\InformationCollection\Doctrine\Repository\EzInfoCollectionRepository; |
|
| 14 | 13 | use Netgen\InformationCollection\Doctrine\Repository\EzInfoCollectionAttributeRepository; |
| 14 | +use Netgen\InformationCollection\Doctrine\Repository\EzInfoCollectionRepository; |
|
| 15 | 15 | use Symfony\Component\Translation\TranslatorInterface; |
| 16 | 16 | |
| 17 | 17 | class ExporterService implements Exporter |
@@ -52,10 +52,10 @@ discard block |
||
| 52 | 52 | /** |
| 53 | 53 | * InformationCollectionService constructor. |
| 54 | 54 | * |
| 55 | - * @param \Netgen\Bundle\InformationCollectionBundle\Repository\EzInfoCollectionRepository $ezInfoCollectionRepository |
|
| 56 | - * @param \Netgen\Bundle\InformationCollectionBundle\Repository\EzInfoCollectionAttributeRepository $ezInfoCollectionAttributeRepository |
|
| 55 | + * @param EzInfoCollectionRepository $ezInfoCollectionRepository |
|
| 56 | + * @param EzInfoCollectionAttributeRepository $ezInfoCollectionAttributeRepository |
|
| 57 | 57 | * @param \eZ\Publish\API\Repository\Repository $repository |
| 58 | - * @param \Netgen\Bundle\InformationCollectionBundle\Core\Persistence\Gateway\DoctrineDatabase $gateway |
|
| 58 | + * @param DoctrineDatabase $gateway |
|
| 59 | 59 | */ |
| 60 | 60 | public function __construct( |
| 61 | 61 | EzInfoCollectionRepository $ezInfoCollectionRepository, |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | /** |
| 279 | 279 | * @param int $collectionId |
| 280 | 280 | * |
| 281 | - * @return \Netgen\Bundle\InformationCollectionBundle\API\Value\InformationCollection\Collection |
|
| 281 | + * @return Collection |
|
| 282 | 282 | */ |
| 283 | 283 | protected function loadCollection($collectionId) |
| 284 | 284 | { |
@@ -4,7 +4,6 @@ discard block |
||
| 4 | 4 | |
| 5 | 5 | namespace Netgen\InformationCollection\Core\Service; |
| 6 | 6 | |
| 7 | -use eZ\Publish\API\Repository\Repository; |
|
| 8 | 7 | use Netgen\InformationCollection\API\Service\InformationCollection; |
| 9 | 8 | use Netgen\InformationCollection\API\Value\Attribute; |
| 10 | 9 | use Netgen\InformationCollection\API\Value\Collection; |
@@ -14,8 +13,9 @@ discard block |
||
| 14 | 13 | use Netgen\InformationCollection\API\Value\Filter\Query; |
| 15 | 14 | use Netgen\InformationCollection\Core\Persistence\Gateway\DoctrineDatabase; |
| 16 | 15 | use Netgen\InformationCollection\Doctrine\Entity\EzInfoCollectionAttribute; |
| 17 | -use Netgen\InformationCollection\Doctrine\Repository\EzInfoCollectionRepository; |
|
| 18 | 16 | use Netgen\InformationCollection\Doctrine\Repository\EzInfoCollectionAttributeRepository; |
| 17 | +use Netgen\InformationCollection\Doctrine\Repository\EzInfoCollectionRepository; |
|
| 18 | +use eZ\Publish\API\Repository\Repository; |
|
| 19 | 19 | |
| 20 | 20 | class InformationCollectionService implements InformationCollection |
| 21 | 21 | { |