File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Controller/Adminhtml/Product Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -77,8 +77,10 @@ public function __construct(
7777 $ this ->logger = $ logger ;
7878 $ this ->registry = $ registry ;
7979 $ this ->wysiwygConfig = $ wysiwygConfig ;
80+ // phpcs:disable
8081 $ this ->storeFactory = $ storeFactory ?: \Magento \Framework \App \ObjectManager::getInstance ()
8182 ->get (\Magento \Store \Model \StoreFactory::class);
83+ // phpcs:enable
8284 $ this ->productRepository = $ productRepository ?: \Magento \Framework \App \ObjectManager::getInstance ()
8385 ->get (ProductRepositoryInterface::class);
8486 }
Original file line number Diff line number Diff line change @@ -103,11 +103,13 @@ public function getList(SearchCriteriaInterface $searchCriteria)
103103 */
104104 private function getCollectionProcessor ()
105105 {
106+ // phpcs:disable
106107 if (!$ this ->collectionProcessor ) {
107108 $ this ->collectionProcessor = \Magento \Framework \App \ObjectManager::getInstance ()->get (
108109 '\Magento\Eav\Model\Api\SearchCriteria\CollectionProcessor '
109110 );
110111 }
112+ // phpcs:enable
111113 return $ this ->collectionProcessor ;
112114 }
113115}
You can’t perform that action at this time.
0 commit comments