1 | <?php |
||
12 | final class ExportAll extends AbstractController |
||
13 | { |
||
14 | /** |
||
15 | * @var \eZ\Publish\API\Repository\ContentService |
||
16 | */ |
||
17 | protected $contentService; |
||
18 | |||
19 | /** |
||
20 | * @var \Netgen\InformationCollection\API\Service\Exporter |
||
21 | */ |
||
22 | protected $exporter; |
||
23 | |||
24 | /** |
||
25 | * @var \Netgen\InformationCollection\Core\Export\ExportResponseFormatterRegistry |
||
26 | */ |
||
27 | protected $formatterRegistry; |
||
28 | |||
29 | public function __construct( |
||
39 | |||
40 | /** |
||
41 | * Handles comeplete data export in available formats |
||
42 | * |
||
43 | * @param int $contentId |
||
44 | * @param string $exportIdentifier |
||
45 | * |
||
46 | * @return \Symfony\Component\HttpFoundation\RedirectResponse|Response |
||
47 | */ |
||
48 | public function __invoke($contentId, $exportIdentifier) |
||
60 | |||
61 | /** |
||
62 | * @param \eZ\Publish\API\Repository\Values\Content\Content $content |
||
63 | * |
||
64 | * @return \Netgen\Bundle\InformationCollectionBundle\API\Value\Export\Export |
||
65 | */ |
||
66 | protected function getExportByContent(Content $content): ExportValue |
||
76 | } |
||
77 |