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 10
10
use Magento \Framework \Exception \LocalizedException ;
11
11
use Magento \Framework \GraphQl \Query \Resolver \ContextInterface ;
12
12
use Magento \Framework \GraphQl \Schema \Type \ResolveInfo ;
13
- use Magento \Catalog \Model \ Product ;
13
+ use Magento \Catalog \Api \ Data \ ProductInterface ;
14
14
use Magento \Framework \GraphQl \Config \Element \Field ;
15
15
use Magento \Framework \GraphQl \Query \ResolverInterface ;
16
16
@@ -45,7 +45,7 @@ public function resolve(
45
45
throw new LocalizedException (__ ('"model" value should be specified ' ));
46
46
}
47
47
48
- /** @var Product $product */
48
+ /** @var ProductInterface $product */
49
49
$ product = $ value ['model ' ];
50
50
51
51
$ mediaGalleryEntries = [];
Original file line number Diff line number Diff line change 13
13
use Magento \Framework \GraphQl \Config \Element \Field ;
14
14
use Magento \Framework \GraphQl \Query \ResolverInterface ;
15
15
use Magento \Framework \GraphQl \Schema \Type \ResolveInfo ;
16
- use Magento \Store \Model \ Store ;
16
+ use Magento \Store \Api \ Data \ StoreInterface ;
17
17
18
18
/**
19
19
* Return media label
@@ -56,7 +56,7 @@ public function resolve(
56
56
/** @var Product $product */
57
57
$ product = $ value ['model ' ];
58
58
$ productId = (int )$ product ->getEntityId ();
59
- /** @var Store $store */
59
+ /** @var StoreInterface $store */
60
60
$ store = $ context ->getExtensionAttributes ()->getStore ();
61
61
$ storeId = (int )$ store ->getId ();
62
62
if (!isset ($ value ['image_type ' ])) {
You can’t perform that action at this time.
0 commit comments