File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 44namespace IntegerNet \AsyncVarnish \Console \Command ;
55
66use IntegerNet \AsyncVarnish \Model \PurgeAsyncCache as Purger ;
7+ use Magento \Framework \App \State ;
78use Symfony \Component \Console \Input \InputInterface ;
89use Symfony \Component \Console \Output \OutputInterface ;
910
1011class PurgeAsyncTagsCommand extends \Symfony \Component \Console \Command \Command
1112{
1213 /**
13- * @var \Magento\Framework\App\ State
14+ * @var State
1415 */
1516 private $ appState ;
1617
@@ -20,7 +21,7 @@ class PurgeAsyncTagsCommand extends \Symfony\Component\Console\Command\Command
2021 private $ purger ;
2122
2223 public function __construct (
23- \ Magento \ Framework \ App \ State \ Proxy $ appState ,
24+ State $ appState ,
2425 Purger $ purger ,
2526 ?string $ name = null
2627 ) {
@@ -32,16 +33,16 @@ public function __construct(
3233 /**
3334 * {@inheritdoc}
3435 */
35- protected function configure () //phpcs:ignore
36+ protected function configure ()
3637 {
3738 $ this ->setName ('integernet:asyncvarnish:purge ' )
38- ->setDescription ('Purges Varnish Tags ' );
39+ ->setDescription ('Purges Varnish Tags currently stored in database table ' );
3940 }
4041
4142 /**
4243 * {@inheritdoc}
4344 */
44- protected function execute (InputInterface $ input , OutputInterface $ output ) //phpcs:ignore
45+ protected function execute (InputInterface $ input , OutputInterface $ output )
4546 {
4647 try {
4748 $ this ->appState ->setAreaCode ('adminhtml ' );
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" ?>
22<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:framework:ObjectManager/etc/config.xsd" >
3+ <type name =" IntegerNet\AsyncVarnish\Console\Command\PurgeAsyncTagsCommand" >
4+ <arguments >
5+ <argument name =" state" xsi : type =" object" >Magento\Framework\App\State\Proxy</argument >
6+ </arguments >
7+ </type >
38 <type name =" Magento\Framework\Console\CommandListInterface" >
49 <arguments >
510 <argument name =" commands" xsi : type =" array" >
You can’t perform that action at this time.
0 commit comments