6
6
7
7
namespace Magento \SampleData \Console \Command ;
8
8
9
- use Composer \Console \Application ;
10
9
use Composer \Console \ApplicationFactory ;
11
10
use Exception ;
12
11
use Magento \Framework \App \Filesystem \DirectoryList ;
15
14
use Magento \Framework \Exception \InvalidArgumentException ;
16
15
use Magento \Framework \Exception \LocalizedException ;
17
16
use Magento \Framework \Filesystem ;
18
- use Magento \Framework \Serialize \Serializer \Json ;
19
17
use Magento \SampleData \Model \Dependency ;
20
18
use Magento \Setup \Model \PackagesAuth ;
21
19
use Symfony \Component \Console \Command \Command ;
22
20
use Symfony \Component \Console \Input \ArrayInput ;
23
- use Symfony \Component \Console \Input \ArrayInputFactory ;
24
21
use Symfony \Component \Console \Input \InputInterface ;
25
22
use Symfony \Component \Console \Input \InputOption ;
26
23
use Symfony \Component \Console \Output \OutputInterface ;
@@ -40,37 +37,23 @@ class SampleDataDeployCommand extends Command
40
37
/** @var Dependency */
41
38
private Dependency $ sampleDataDependency ;
42
39
43
- /**
44
- * @var ArrayInputFactory
45
- * @deprecated 100.1.0
46
- */
47
- private ArrayInputFactory $ arrayInputFactory ;
48
-
49
40
/** @var ApplicationFactory */
50
41
private ApplicationFactory $ applicationFactory ;
51
42
52
- /** @var Json */
53
- private Json $ serializer ;
54
-
55
43
/**
56
44
* @param Filesystem $filesystem
57
45
* @param Dependency $sampleDataDependency
58
- * @param ArrayInputFactory $arrayInputFactory
59
46
* @param ApplicationFactory $applicationFactory
60
- * @param Json $serializer
61
47
*/
62
48
public function __construct (
63
49
Filesystem $ filesystem ,
64
50
Dependency $ sampleDataDependency ,
65
- ArrayInputFactory $ arrayInputFactory ,
66
- ApplicationFactory $ applicationFactory ,
67
- Json $ serializer
51
+ ApplicationFactory $ applicationFactory
68
52
) {
69
53
$ this ->filesystem = $ filesystem ;
70
54
$ this ->sampleDataDependency = $ sampleDataDependency ;
71
- $ this ->arrayInputFactory = $ arrayInputFactory ;
72
55
$ this ->applicationFactory = $ applicationFactory ;
73
- $ this -> serializer = $ serializer ;
56
+
74
57
parent ::__construct ();
75
58
}
76
59
@@ -118,7 +101,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
118
101
$ arguments = array_merge (['command ' => 'require ' ], $ commonArgs );
119
102
$ commandInput = new ArrayInput ($ arguments );
120
103
121
- /** @var Application $application */
122
104
$ application = $ this ->applicationFactory ->create ();
123
105
$ application ->setAutoExit (false );
124
106
$ result = $ application ->run ($ commandInput , $ output );
0 commit comments