1414
1515use Symfony \Component \Console \Input \InputInterface ;
1616use Symfony \Component \Console \Output \OutputInterface ;
17- use Symfony \Component \Console \Style \SymfonyStyle ;
1817use Symfony \Component \Filesystem \Exception \IOException ;
1918use Symfony \Component \Filesystem \Filesystem ;
2019use Symfony \Component \Finder \Finder ;
@@ -32,11 +31,6 @@ class AcceptanceTestsCommand extends AbstractCommand
3231 */
3332 protected $ filesystem ;
3433
35- /**
36- * @var SymfonyStyle $io
37- */
38- protected $ io ;
39-
4034 /**
4135 * @var PackageInterface $package
4236 */
@@ -54,8 +48,7 @@ protected function configure(): void
5448 */
5549 protected function execute (InputInterface $ input , OutputInterface $ output ): int
5650 {
57- $ this ->io = new SymfonyStyle ($ input , $ output );
58- $ this ->package = $ this ->askForPackage ($ this ->io );
51+ $ this ->package = $ this ->packageResolver ->resolvePackage ($ this ->askForExtensionKey ());
5952
6053 $ packageKey = $ this ->package ->getPackageKey ();
6154 $ targetPackagePath = $ this ->package ->getPackagePath ();
@@ -70,7 +63,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7063 $ finder = GeneralUtility::makeInstance (Finder::class);
7164
7265 $ codeTemplatePath = '/Resources/Private/CodeTemplates/AcceptanceTests ' ;
73- $ templatePath = $ this ->getPackageResolver () ->resolvePackage ('b13/make ' )->getPackagePath () . $ codeTemplatePath ;
66+ $ templatePath = $ this ->packageResolver ->resolvePackage ('b13/make ' )->getPackagePath () . $ codeTemplatePath ;
7467
7568 $ this ->filesystem ->mkdir ([
7669 $ targetPackagePath . '/Tests/Acceptance/Fixtures ' ,
0 commit comments