File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
lib/internal/Magento/Framework Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,10 +45,11 @@ protected function getApplicationCommands()
45
45
$ params = $ bootstrapParam ->mergeFromArgv ($ _SERVER , $ _SERVER );
46
46
$ params [Bootstrap::PARAM_REQUIRE_MAINTENANCE ] = null ;
47
47
$ bootstrap = Bootstrap::create (BP , $ params );
48
- $ serviceManager = \Zend \Mvc \Application::init (require BP . '/setup/config/application.config.php ' )
49
- ->getServiceManager ();
48
+ $ objectManager = $ bootstrap ->getObjectManager ();
50
49
51
50
if (class_exists ('Magento\Setup\Console\CommandList ' )) {
51
+ $ serviceManager = \Zend \Mvc \Application::init (require BP . '/setup/config/application.config.php ' )
52
+ ->getServiceManager ();
52
53
$ setupCommandList = new \Magento \Setup \Console \CommandList ($ serviceManager );
53
54
$ setupCommands = $ setupCommandList ->getCommands ();
54
55
}
@@ -58,8 +59,7 @@ protected function getApplicationCommands()
58
59
$ toolsCommands = $ toolsCommandList ->getCommands ();
59
60
}
60
61
61
- if ($ serviceManager ->get ('Magento\Framework\App\DeploymentConfig ' )->isAvailable ()) {
62
- $ objectManager = $ bootstrap ->getObjectManager ();
62
+ if ($ objectManager ->get ('Magento\Framework\App\DeploymentConfig ' )->isAvailable ()) {
63
63
$ commandList = $ objectManager ->create (
64
64
'Magento\Framework\Console\CommandList ' ,
65
65
['objectManager ' =>$ objectManager ]
You can’t perform that action at this time.
0 commit comments