File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
setup/src/Magento/Setup/Validator Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Setup \Validator ;
7
7
8
+ use Magento \Framework \App \ObjectManager ;
8
9
use Magento \Framework \Config \ConfigOptionsListConstants as ConfigOption ;
9
10
use Magento \Setup \Model \AdminAccount ;
10
11
use Magento \Setup \Model \Installer ;
@@ -47,12 +48,12 @@ public function __construct(
47
48
\Magento \Setup \Model \AdminAccountFactory $ adminAccountFactory ,
48
49
\Magento \Setup \Module \ConnectionFactory $ connectionFactory ,
49
50
\Magento \Setup \Module \SetupFactory $ setupFactory ,
50
- DriverOptions $ driverOptions
51
+ DriverOptions $ driverOptions = null
51
52
) {
52
53
$ this ->connectionFactory = $ connectionFactory ;
53
54
$ this ->adminAccountFactory = $ adminAccountFactory ;
54
55
$ this ->setupFactory = $ setupFactory ;
55
- $ this ->driverOptions = $ driverOptions ;
56
+ $ this ->driverOptions = $ driverOptions ?? ObjectManager:: getInstance ()-> get (DriverOptions::class) ;
56
57
}
57
58
58
59
/**
You can’t perform that action at this time.
0 commit comments