@@ -28,37 +28,12 @@ class DumpCommand extends Command
2828{
2929 protected static $defaultName = 'fos:js-routing:dump';
3030
31- /**
32- * @var ExposedRoutesExtractorInterface
33- */
34- private $extractor;
35-
36- /**
37- * @var SerializerInterface
38- */
39- private $serializer;
40-
41- /**
42- * @var string
43- */
44- private $projectDir;
45-
46- /**
47- * @var string
48- */
49- private $requestContextBaseUrl;
50-
51- public function __construct(ExposedRoutesExtractorInterface $extractor, SerializerInterface $serializer, $projectDir, $requestContextBaseUrl = null)
31+ public function __construct(private ExposedRoutesExtractorInterface $extractor, private SerializerInterface $serializer, private string $projectDir, private ?string $requestContextBaseUrl = null)
5232 {
53- $this->extractor = $extractor;
54- $this->serializer = $serializer;
55- $this->projectDir = $projectDir;
56- $this->requestContextBaseUrl = $requestContextBaseUrl;
57-
5833 parent::__construct();
5934 }
6035
61- protected function configure()
36+ protected function configure(): void
6237 {
6338 $this
6439 ->setName('fos:js-routing:dump')
@@ -128,11 +103,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
128103
129104 /**
130105 * Performs the routes dump.
131- *
132- * @param InputInterface $input The command input
133- * @param OutputInterface $output The command output
134106 */
135- private function doDump(InputInterface $input, OutputInterface $output)
107+ private function doDump(InputInterface $input, OutputInterface $output): void
136108 {
137109 $domain = $input->getOption('domain');
138110
0 commit comments