Skip to content

Commit

Permalink
Merge branch 'release/1.0.11'
Browse files Browse the repository at this point in the history
  • Loading branch information
ma4nn committed Nov 10, 2021
2 parents 9e86af8 + 86a85b2 commit f9d373f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 15 deletions.
15 changes: 2 additions & 13 deletions Console/Command/ProductExportCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,12 @@

class ProductExportCommand extends Command
{
/**
* @var \Recolize\RecommendationEngine\Model\Feed
*/
/** @var \Recolize\RecommendationEngine\Model\Feed */
private $feed;

/**
* @var \Magento\Framework\App\State
*/
/** @var \Magento\Framework\App\State */
private $state;

/**
* @param \Magento\Framework\App\State $state
* @param \Recolize\RecommendationEngine\Model\Feed $feed
*/
public function __construct(
\Magento\Framework\App\State $state,
\Recolize\RecommendationEngine\Model\Feed $feed
Expand All @@ -60,9 +52,6 @@ protected function configure()
/**
* Triggers the feed generation.
*
* @param \Symfony\Component\Console\Input\InputInterface $input
* @param \Symfony\Component\Console\Output\OutputInterface $output
*
* @return integer|null
*/
protected function execute(InputInterface $input, OutputInterface $output)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "recolize/module-recommendation-engine-magento2",
"description": "The Recolize Recommendation Engine as extension for Magento 2",
"version": "1.0.10",
"version": "1.0.11",
"type": "magento2-module",
"keywords": [
"recolize",
Expand Down
16 changes: 16 additions & 0 deletions etc/di.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,29 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Magento\Framework\Console\CommandListInterface">
<arguments>
<argument name="commands" xsi:type="array">
<item name="productExportCommand" xsi:type="object">Recolize\RecommendationEngine\Console\Command\ProductExportCommand</item>
</argument>
</arguments>
</type>

<virtualType name="Recolize\RecommendationEngine\Model\Session\Storage" type="Magento\Framework\Session\Storage">
<arguments>
<argument name="namespace" xsi:type="string">recolize</argument>
</arguments>
</virtualType>

<type name="Recolize\RecommendationEngine\Model\Session">
<arguments>
<argument name="storage" xsi:type="object">Recolize\RecommendationEngine\Model\Session\Storage</argument>
</arguments>
</type>

<type name="Recolize\RecommendationEngine\Console\Command\ProductExportCommand">
<arguments>
<argument name="state" xsi:type="object">Magento\Framework\App\State\Proxy</argument>
<argument name="feed" xsi:type="object">Recolize\RecommendationEngine\Model\Feed\Proxy</argument>
</arguments>
</type>
</config>
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Recolize_RecommendationEngine" setup_version="1.0.10">
<module name="Recolize_RecommendationEngine" setup_version="1.0.11">
<sequence>
<module name="Magento_Backend"/>
</sequence>
Expand Down

0 comments on commit f9d373f

Please sign in to comment.