6
6
namespace Magento \SampleData \Model ;
7
7
8
8
use Magento \Framework \Component \ComponentRegistrar ;
9
+ use Magento \Framework \Component \ComponentRegistrarInterface ;
9
10
use Magento \Framework \Composer \ComposerInformation ;
10
- use Magento \Framework \Filesystem ;
11
11
use Magento \Framework \Config \Composer \Package ;
12
12
use Magento \Framework \Config \Composer \PackageFactory ;
13
+ use Magento \Framework \Filesystem ;
13
14
14
15
/**
15
16
* Sample Data dependency
@@ -32,21 +33,21 @@ class Dependency
32
33
private $ packageFactory ;
33
34
34
35
/**
35
- * @var ComponentRegistrar
36
+ * @var ComponentRegistrarInterface
36
37
*/
37
38
private $ componentRegistrar ;
38
39
39
40
/**
40
41
* @param ComposerInformation $composerInformation
41
42
* @param Filesystem $filesystem
42
43
* @param PackageFactory $packageFactory
43
- * @param ComponentRegistrar $componentRegistrar
44
+ * @param ComponentRegistrarInterface $componentRegistrar
44
45
*/
45
46
public function __construct (
46
47
ComposerInformation $ composerInformation ,
47
48
Filesystem $ filesystem ,
48
49
PackageFactory $ packageFactory ,
49
- ComponentRegistrar $ componentRegistrar
50
+ ComponentRegistrarInterface $ componentRegistrar
50
51
) {
51
52
$ this ->composerInformation = $ composerInformation ;
52
53
$ this ->packageFactory = $ packageFactory ;
0 commit comments