Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Member Functions
ConfigAnalyzer Class Reference
Inheritance diagram for ConfigAnalyzer:

Public Member Functions

 __construct (ObjectManagerInterface $objectManager, DataInterface $configXml, DataInterface $configXmlDist)
 

Protected Member Functions

 configure ()
 
 execute (InputInterface $input, OutputInterface $output)
 

Detailed Description

Checks if config.xml is configured properly.

Definition at line 17 of file ConfigAnalyzer.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( ObjectManagerInterface  $objectManager,
DataInterface  $configXml,
DataInterface  $configXmlDist 
)
Parameters
ObjectManagerInterface$objectManager
DataInterface$configXml
DataInterface$configXmlDist

Definition at line 52 of file ConfigAnalyzer.php.

56  {
57  parent::__construct();
58  $this->objectManager = $objectManager;
59  $this->configXml = $configXml->get();
60  $this->configXmlDist = $configXmlDist->get();
61  }
$objectManager
Definition: bootstrap.php:17

Member Function Documentation

◆ configure()

configure ( )
protected

Configure command.

Returns
void

Definition at line 68 of file ConfigAnalyzer.php.

69  {
70  parent::configure();
71  $this->setName('troubleshooting:check-config-valid')
72  ->setDescription('Check if config.xml is configured properly.');
73  }

◆ execute()

execute ( InputInterface  $input,
OutputInterface  $output 
)
protected

Execute check if config.xml is configured properly.

Parameters
InputInterface$input
OutputInterface$output
Returns
void @SuppressWarnings(PHPMD.UnusedFormalParameter)

Definition at line 83 of file ConfigAnalyzer.php.

84  {
85  $output = $this->objectManager->create(
86  \Magento\Mtf\Console\Output::class,
87  ['output' => $output]
88  );
89  $output->writeln("Checking config.xml file configuration...");
90  $output->outputMessages($this->checkConfigFileAvailable());
91  $output->writeln("config.xml file check is finished.");
92  }

The documentation for this class was generated from the following file: