Skip to content

Commit

Permalink
https://github.com/tradefurniturecompany/image/issues/1
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Oct 25, 2020
1 parent 95fd8af commit 4cb62da
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Command.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
namespace TFC\Image;
# 2020-10-25
final class Command extends \Df\Framework\Console\Command {
/**
* 2020-10-25
* @override
* @see \Symfony\Component\Console\Command\Command::configure()
*/
protected function configure() {$this->setName('tfc:image')->setDescription('Processes product images');}

/**
* 2020-10-25
* @override
* @see \Df\Framework\Console\Command::p()
* @used-by \Df\Framework\Console\Command::execute()
* @return void
*/
protected function p() {$this->output()->writeln(__METHOD__);}
}
13 changes: 13 additions & 0 deletions etc/di.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?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='uninstall_language' xsi:type='object'>TFC\Image\Command</item>
</argument>
</arguments>
</type>
</config>

0 comments on commit 4cb62da

Please sign in to comment.