File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
app/code/Magento/Downloadable/Model Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 7
7
8
8
use Magento \Catalog \Api \Data \ProductInterface ;
9
9
use Magento \Downloadable \Api \Data \LinkInterface ;
10
+ use Magento \Downloadable \Model \Product \Type ;
10
11
use Magento \Downloadable \Api \Data \File \ContentUploaderInterface ;
11
12
use Magento \Downloadable \Model \Product \TypeHandler \Link as LinkHandler ;
12
13
use Magento \Framework \EntityManager \MetadataPool ;
@@ -42,6 +43,11 @@ class LinkRepository implements \Magento\Downloadable\Api\LinkRepositoryInterfac
42
43
*/
43
44
protected $ contentValidator ;
44
45
46
+ /**
47
+ * @var Type
48
+ */
49
+ protected $ downloadableType ;
50
+
45
51
/**
46
52
* @var ContentUploaderInterface
47
53
*/
Original file line number Diff line number Diff line change @@ -41,6 +41,11 @@ class SampleRepository implements \Magento\Downloadable\Api\SampleRepositoryInte
41
41
*/
42
42
protected $ downloadableType ;
43
43
44
+ /**
45
+ * @var SampleFactory
46
+ */
47
+ protected $ sampleFactory ;
48
+
44
49
/**
45
50
* @var SampleInterfaceFactory
46
51
*/
@@ -90,7 +95,6 @@ public function __construct(
90
95
$ this ->fileContentUploader = $ fileContentUploader ;
91
96
$ this ->jsonEncoder = $ jsonEncoder ;
92
97
$ this ->sampleFactory = $ sampleFactory ;
93
- $ this ->downloadableType = $ downloadableType ;
94
98
$ this ->sampleDataObjectFactory = $ sampleDataObjectFactory ;
95
99
}
96
100
You can’t perform that action at this time.
0 commit comments