File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
app/code/Magento/CatalogGraphQl/Model/Resolver/Product Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1010use Magento \Framework \Exception \LocalizedException ;
1111use Magento \Framework \GraphQl \Query \Resolver \ContextInterface ;
1212use Magento \Framework \GraphQl \Schema \Type \ResolveInfo ;
13- use Magento \Catalog \Model \ Product ;
13+ use Magento \Catalog \Api \ Data \ ProductInterface ;
1414use Magento \Framework \GraphQl \Config \Element \Field ;
1515use Magento \Framework \GraphQl \Query \ResolverInterface ;
1616
@@ -45,7 +45,7 @@ public function resolve(
4545 throw new LocalizedException (__ ('"model" value should be specified ' ));
4646 }
4747
48- /** @var Product $product */
48+ /** @var ProductInterface $product */
4949 $ product = $ value ['model ' ];
5050
5151 $ mediaGalleryEntries = [];
Original file line number Diff line number Diff line change 1313use Magento \Framework \GraphQl \Config \Element \Field ;
1414use Magento \Framework \GraphQl \Query \ResolverInterface ;
1515use Magento \Framework \GraphQl \Schema \Type \ResolveInfo ;
16- use Magento \Store \Model \ Store ;
16+ use Magento \Store \Api \ Data \ StoreInterface ;
1717
1818/**
1919 * Return media label
@@ -56,7 +56,7 @@ public function resolve(
5656 /** @var Product $product */
5757 $ product = $ value ['model ' ];
5858 $ productId = (int )$ product ->getEntityId ();
59- /** @var Store $store */
59+ /** @var StoreInterface $store */
6060 $ store = $ context ->getExtensionAttributes ()->getStore ();
6161 $ storeId = (int )$ store ->getId ();
6262 if (!isset ($ value ['image_type ' ])) {
You can’t perform that action at this time.
0 commit comments