Skip to content

Commit f774cdd

Browse files
committed
Add feedIndexMetadata to be able to export data
1 parent 30caff0 commit f774cdd

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

SalesOrdersDataExporter/Console/Command/Export.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ public function __construct(
4646
$this->logger = $logger;
4747
$this->metadata = $metadata;
4848
$this->processor = $processor;
49-
parent::__construct();
5049
$this->dateTimeFactory = $dateTimeFactory;
5150
$this->linkCommand = $link;
51+
parent::__construct();
5252
}
5353

5454
protected function configure()
@@ -78,7 +78,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7878

7979
$this->processor->fullReindex($this->metadata, $from, $to);
8080

81-
return 0;
81+
return Cli::RETURN_SUCCESS;
8282
}
8383

8484
private function ensureAssignedUuids(DateTime $from, DateTime $to, OutputInterface $output): int

SalesOrdersDataExporter/etc/di.xml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,19 @@
5353
<virtualType name="Magento\SalesOrdersDataExporter\Model\OrdersFeed"
5454
type="Magento\DataExporter\Model\Feed">
5555
<arguments>
56-
<argument name="feedIndexMetadata" xsi:type="object">
57-
Magento\SalesOrdersDataExporter\Model\Indexer\OrdersFeedIndexMetadata</argument>
56+
<argument name="feedIndexMetadata" xsi:type="object">Magento\SalesOrdersDataExporter\Model\Indexer\OrdersFeedIndexMetadata</argument>
57+
<argument name="hasRemovableEntities" xsi:type="boolean">false</argument>
58+
<argument name="dateTimeFormat" xsi:type="const">\DateTimeInterface::RFC3339</argument>
59+
</arguments>
60+
</virtualType>
61+
<virtualType name="Magento\SalesOrdersDataExporter\Model\OrdersOnDemmandExportFeed"
62+
type="Magento\DataExporter\Model\Feed">
63+
<arguments>
64+
<argument name="feedIndexMetadata" xsi:type="object">Magento\SalesOrdersDataExporter\Model\Indexer\OrdersOnDemmandExportFeedIndexMetadata</argument>
5865
<argument name="hasRemovableEntities" xsi:type="boolean">false</argument>
5966
<argument name="dateTimeFormat" xsi:type="const">\DateTimeInterface::RFC3339</argument>
6067
</arguments>
6168
</virtualType>
62-
6369
<type name="Magento\SalesOrdersDataExporter\Console\Command\Export">
6470
<arguments>
6571
<argument name="metadata" xsi:type="object">

0 commit comments

Comments
 (0)