Skip to content

Commit 446fa2b

Browse files
committed
Fix dry-run option not being passed to Generator.generate()
1 parent de9b4bf commit 446fa2b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Command/GenerateDtoCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7171
$consoleIo = new SymfonyConsoleIo($io);
7272

7373
$generator = new Generator($builder, $renderer, $consoleIo, $config);
74-
$generator->generate($configPath, $outputPath);
74+
$generator->generate($configPath, $outputPath, [
75+
'dryRun' => $input->getOption('dry-run'),
76+
'verbose' => $output->isVerbose(),
77+
]);
7578

7679
$io->success('DTOs generated successfully.');
7780

0 commit comments

Comments
 (0)