7
7
8
8
namespace Magento \Developer \Console \Command ;
9
9
10
+ use Magento \Framework \App \Config \ReinitableConfigInterface ;
11
+ use Magento \Framework \App \Config \ScopeConfigInterface ;
12
+ use Magento \Framework \Console \Cli ;
10
13
use Symfony \Component \Console \Command \Command ;
11
14
use Symfony \Component \Console \Input \InputInterface ;
12
15
use Symfony \Component \Console \Output \OutputInterface ;
13
- use Magento \Framework \App \Config \ScopeConfigInterface ;
14
- use Magento \Framework \App \Config \ReinitableConfigInterface ;
15
- use Magento \Framework \Console \Cli ;
16
16
17
17
/**
18
18
* Command to show frontend template hints status
19
19
*/
20
20
class TemplateHintsStatusCommand extends Command
21
21
{
22
-
23
22
const COMMAND_NAME = 'dev:template-hints:status ' ;
24
23
const TEMPLATE_HINTS_STOREFRONT_PATH = 'dev/debug/template_hints_storefront ' ;
25
24
26
25
/**
27
26
* @var ScopeConfigInterface
28
27
*/
29
28
private $ scopeConfig ;
29
+
30
30
/**
31
31
* @var ReinitableConfigInterface
32
32
*/
@@ -41,8 +41,7 @@ class TemplateHintsStatusCommand extends Command
41
41
public function __construct (
42
42
ScopeConfigInterface $ scopeConfig ,
43
43
ReinitableConfigInterface $ reinitableConfig
44
- )
45
- {
44
+ ) {
46
45
parent ::__construct ();
47
46
$ this ->scopeConfig = $ scopeConfig ;
48
47
$ this ->reinitableConfig = $ reinitableConfig ;
@@ -51,7 +50,7 @@ public function __construct(
51
50
/**
52
51
* @inheritdoc
53
52
*/
54
- protected function configure ()
53
+ public function configure ()
55
54
{
56
55
$ this ->setName (self ::COMMAND_NAME )
57
56
->setDescription ('Show frontend template hints status. ' );
@@ -63,7 +62,7 @@ protected function configure()
63
62
* @inheritdoc
64
63
* @throws \InvalidArgumentException
65
64
*/
66
- protected function execute (InputInterface $ input , OutputInterface $ output )
65
+ public function execute (InputInterface $ input , OutputInterface $ output )
67
66
{
68
67
$ this ->reinitableConfig ->reinit ();
69
68
$ templateHintsStatus =
0 commit comments