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

Public Member Functions

 __construct (ObjectManagerInterface $objectManager, State1 $state1)
 

Protected Member Functions

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

Detailed Description

Analyze Magento configuration.

Definition at line 17 of file Configuration.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( ObjectManagerInterface  $objectManager,
State1  $state1 
)
Parameters
ObjectManagerInterface$objectManager
State1$state1

Definition at line 37 of file Configuration.php.

40  {
41  parent::__construct();
42  $this->objectManager = $objectManager;
43  $this->state1 = $state1;
44  }
$objectManager
Definition: bootstrap.php:17

Member Function Documentation

◆ configure()

configure ( )
protected

Configure command.

Returns
void

Definition at line 51 of file Configuration.php.

52  {
53  parent::configure();
54  $this->setName('troubleshooting:apply-magento-configuration')
55  ->setDescription('Apply proper Magento configuration to run functional tests.');
56  }

◆ execute()

execute ( InputInterface  $input,
OutputInterface  $output 
)
protected

Execute command.

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

Definition at line 66 of file Configuration.php.

67  {
68  $output = $this->objectManager->create(
69  \Magento\Mtf\Console\Output::class,
70  ['output' => $output]
71  );
72  $output->writeln("Applying Magento configuration...");
73  $this->state1->apply();
74  $output->outputMessages(
75  ['info' => ['Magento configuration was updated in order to run functional tests without errors '
76  . '(disabled WYSIWYG, enabled admin account sharing etc.).']
77  ]
78  );
79  }

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