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 1818use Magento \Framework \Setup \Declaration \Schema \Declaration \ReaderComposite ;
1919use Psr \Log \LoggerInterface ;
2020use Magento \Framework \Exception \LocalizedException ;
21+ use Magento \Framework \App \ObjectManager ;
2122
2223/**
2324 * This type of builder is responsible for converting ENTIRE data, that comes from db
@@ -77,13 +78,13 @@ public function __construct(
7778 DbSchemaReaderInterface $ dbSchemaReader ,
7879 Sharding $ sharding ,
7980 ReaderComposite $ readerComposite ,
80- LoggerInterface $ logger
81+ ? LoggerInterface $ logger = null
8182 ) {
8283 $ this ->elementFactory = $ elementFactory ;
8384 $ this ->dbSchemaReader = $ dbSchemaReader ;
8485 $ this ->sharding = $ sharding ;
8586 $ this ->readerComposite = $ readerComposite ;
86- $ this ->logger = $ logger ;
87+ $ this ->logger = $ logger ?: ObjectManager:: getInstance ()-> get (LoggerInterface::class) ;
8788 }
8889
8990 /**
You can’t perform that action at this time.
0 commit comments