File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
app/code/Magento/MediaGalleryUi/Model/SearchCriteria/CollectionProcessor/FilterProcessor Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1111use Magento \Framework \Api \SearchCriteria \CollectionProcessor \FilterProcessor \CustomFilterInterface ;
1212use Magento \Framework \Data \Collection \AbstractDb ;
1313use Psr \Log \LoggerInterface ;
14+ use Magento \Framework \App \ObjectManager ;
1415
1516class Directory implements CustomFilterInterface
1617{
@@ -20,11 +21,11 @@ class Directory implements CustomFilterInterface
2021 private $ logger ;
2122
2223 /**
23- * @param LoggerInterface $logger
24+ * @param LoggerInterface|null $logger
2425 */
25- public function __construct (LoggerInterface $ logger )
26+ public function __construct (LoggerInterface $ logger = null )
2627 {
27- $ this ->logger = $ logger ;
28+ $ this ->logger = $ logger ?: ObjectManager:: getInstance ()-> create (LoggerInterface::class) ;
2829 }
2930
3031 /**
You can’t perform that action at this time.
0 commit comments