Skip to content
Snippets Groups Projects
Commit 46529f8f authored by Vadim Justus's avatar Vadim Justus
Browse files

Remove 'Introduce Export Definition to Dump Entries' in order to have clean develop branch

parent d6e9c47c
No related branches found
No related tags found
No related merge requests found
<?php
declare(strict_types=1);
namespace Firegento\ContentProvisioning\Api;
use Firegento\ContentProvisioning\Api\Data\EntryInterface;
interface ExportInterface
{
/**
* @param StrategyInterface $strategy
* @param EntryInterface $entry
* @return void
*/
public function execute(StrategyInterface $strategy, EntryInterface $entry): void;
}
\ No newline at end of file
<?php
declare(strict_types=1);
namespace Firegento\ContentProvisioning\Api;
interface StrategyInterface
{
/**
* @return string
*/
public function getTargetPath(): string;
}
<?php
declare(strict_types=1);
namespace Firegento\ContentProvisioning\Api;
use Magento\Framework\Exception\NotFoundException;
interface StrategyProviderInterface
{
/**
* @param string $strategyCode
* @return StrategyInterface
*
* @throws NotFoundException
*/
public function get(string $strategyCode): StrategyInterface;
}
......@@ -107,24 +107,4 @@
</argument>
</arguments>
</type>
<preference
for="Firegento\ContentProvisioning\Api\StrategyProviderInterface"
type="Firegento\ContentProvisioning\Model\Strategy\Provider"
/>
<preference
for="Firegento\ContentProvisioning\Api\ExportInterface"
type="Firegento\ContentProvisioning\Model\Command\ExportEntry"
/>
<type name="Firegento\ContentProvisioning\Model\Strategy\Provider">
<arguments>
<argument name="strategies" xsi:type="array">
<item name="export_to_module" xsi:type="object">Firegento\ContentProvisioning\Model\Strategy\ExportToModule</item>
<item name="export_to_var" xsi:type="object">Firegento\ContentProvisioning\Model\Strategy\ExportToVar</item>
</argument>
</arguments>
</type>
</config>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment