File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
framework/Magento/TestFramework/Console Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 33
33
try {
34
34
$ handler = new \Magento \Framework \App \ErrorHandler ();
35
35
set_error_handler ([$ handler , 'handler ' ]);
36
- $ application = new CliProxy ('Magento CLI ' );
36
+ if ($ _SERVER ['INTEGRATION_TESTS_CLI_AUTOLOADER ' ]) {
37
+ $ application = new CliProxy ('Magento CLI ' );
38
+ } else {
39
+ $ application = new Cli ('Magento CLI ' );
40
+ }
37
41
$ application ->run ();
38
42
} catch (\Exception $ e ) {
39
43
while ($ e ) {
Original file line number Diff line number Diff line change 13
13
use Symfony \Component \Console \Input \InputInterface ;
14
14
use Symfony \Component \Console \Output \OutputInterface ;
15
15
16
+ /**
17
+ * Provides the ability to inject additional DI configuration to call a CLI command
18
+ */
16
19
class CliProxy implements \Magento \Framework \ObjectManager \NoninterceptableInterface
17
20
{
18
21
/**
You can’t perform that action at this time.
0 commit comments