66
77namespace Magento \SampleData \Console \Command ;
88
9- use Composer \Console \Application ;
109use Composer \Console \ApplicationFactory ;
1110use Exception ;
1211use Magento \Framework \App \Filesystem \DirectoryList ;
1514use Magento \Framework \Exception \InvalidArgumentException ;
1615use Magento \Framework \Exception \LocalizedException ;
1716use Magento \Framework \Filesystem ;
18- use Magento \Framework \Serialize \Serializer \Json ;
1917use Magento \SampleData \Model \Dependency ;
2018use Magento \Setup \Model \PackagesAuth ;
2119use Symfony \Component \Console \Command \Command ;
2220use Symfony \Component \Console \Input \ArrayInput ;
23- use Symfony \Component \Console \Input \ArrayInputFactory ;
2421use Symfony \Component \Console \Input \InputInterface ;
2522use Symfony \Component \Console \Input \InputOption ;
2623use Symfony \Component \Console \Output \OutputInterface ;
@@ -40,37 +37,23 @@ class SampleDataDeployCommand extends Command
4037 /** @var Dependency */
4138 private Dependency $ sampleDataDependency ;
4239
43- /**
44- * @var ArrayInputFactory
45- * @deprecated 100.1.0
46- */
47- private ArrayInputFactory $ arrayInputFactory ;
48-
4940 /** @var ApplicationFactory */
5041 private ApplicationFactory $ applicationFactory ;
5142
52- /** @var Json */
53- private Json $ serializer ;
54-
5543 /**
5644 * @param Filesystem $filesystem
5745 * @param Dependency $sampleDataDependency
58- * @param ArrayInputFactory $arrayInputFactory
5946 * @param ApplicationFactory $applicationFactory
60- * @param Json $serializer
6147 */
6248 public function __construct (
6349 Filesystem $ filesystem ,
6450 Dependency $ sampleDataDependency ,
65- ArrayInputFactory $ arrayInputFactory ,
66- ApplicationFactory $ applicationFactory ,
67- Json $ serializer
51+ ApplicationFactory $ applicationFactory
6852 ) {
6953 $ this ->filesystem = $ filesystem ;
7054 $ this ->sampleDataDependency = $ sampleDataDependency ;
71- $ this ->arrayInputFactory = $ arrayInputFactory ;
7255 $ this ->applicationFactory = $ applicationFactory ;
73- $ this -> serializer = $ serializer ;
56+
7457 parent ::__construct ();
7558 }
7659
@@ -118,7 +101,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
118101 $ arguments = array_merge (['command ' => 'require ' ], $ commonArgs );
119102 $ commandInput = new ArrayInput ($ arguments );
120103
121- /** @var Application $application */
122104 $ application = $ this ->applicationFactory ->create ();
123105 $ application ->setAutoExit (false );
124106 $ result = $ application ->run ($ commandInput , $ output );
0 commit comments