◆ __construct()
Initialize dependencies.
- Parameters
-
ConfigInterface | $resourceConfig | |
Definition at line 36 of file TemplateHintsDisableCommand.php.
38 parent::__construct();
39 $this->resourceConfig = $resourceConfig;
◆ configure()
{}
Definition at line 45 of file TemplateHintsDisableCommand.php.
47 $this->setName(self::COMMAND_NAME)
48 ->setDescription(
'Disable frontend template hints. A cache flush might be required.');
◆ execute()
execute |
( |
InputInterface |
$input, |
|
|
OutputInterface |
$output |
|
) |
| |
|
protected |
{}
- Exceptions
-
Definition at line 57 of file TemplateHintsDisableCommand.php.
59 $this->resourceConfig->saveConfig(
'dev/debug/template_hints_storefront', 0,
'default', 0);
60 $output->writeln(
"<info>". self::SUCCESS_MESSAGE .
"</info>");
◆ COMMAND_NAME
const COMMAND_NAME = 'dev:template-hints:disable' |
◆ SUCCESS_MESSAGE
const SUCCESS_MESSAGE = "Template hints disabled. Refresh cache types" |
The documentation for this class was generated from the following file: