File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
app/code/Magento/Cron/Console/Command Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 10
10
use Symfony \Component \Console \Input \InputInterface ;
11
11
use Symfony \Component \Console \Output \OutputInterface ;
12
12
use Symfony \Component \Console \Input \InputOption ;
13
+ use Magento \Framework \App \ObjectManager ;
13
14
use Magento \Framework \App \ObjectManagerFactory ;
14
15
use Magento \Store \Model \Store ;
15
16
use Magento \Store \Model \StoreManager ;
@@ -51,7 +52,9 @@ public function __construct(
51
52
DeploymentConfig $ deploymentConfig = null
52
53
){
53
54
$ this ->objectManagerFactory = $ objectManagerFactory ;
54
- $ this ->deploymentConfig = $ deploymentConfig ;
55
+ $ this ->deploymentConfig = $ deploymentConfig ?: ObjectManager::getInstance ()->get (
56
+ DeploymentConfig::class
57
+ );
55
58
parent ::__construct ();
56
59
}
57
60
You can’t perform that action at this time.
0 commit comments