File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
lib/internal/Magento/Framework/Setup/Declaration/Schema/Db Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 18
18
use Magento \Framework \Setup \Declaration \Schema \Declaration \ReaderComposite ;
19
19
use Psr \Log \LoggerInterface ;
20
20
use Magento \Framework \Exception \LocalizedException ;
21
+ use Magento \Framework \App \ObjectManager ;
21
22
22
23
/**
23
24
* This type of builder is responsible for converting ENTIRE data, that comes from db
@@ -77,13 +78,13 @@ public function __construct(
77
78
DbSchemaReaderInterface $ dbSchemaReader ,
78
79
Sharding $ sharding ,
79
80
ReaderComposite $ readerComposite ,
80
- LoggerInterface $ logger
81
+ ? LoggerInterface $ logger = null
81
82
) {
82
83
$ this ->elementFactory = $ elementFactory ;
83
84
$ this ->dbSchemaReader = $ dbSchemaReader ;
84
85
$ this ->sharding = $ sharding ;
85
86
$ this ->readerComposite = $ readerComposite ;
86
- $ this ->logger = $ logger ;
87
+ $ this ->logger = $ logger ?: ObjectManager:: getInstance ()-> get (LoggerInterface::class) ;
87
88
}
88
89
89
90
/**
You can’t perform that action at this time.
0 commit comments