Skip to content

Commit

Permalink
improved the AdminMaker using services input option if set as default (
Browse files Browse the repository at this point in the history
…#7899)

Co-authored-by: Jörn Dyherrn <joern@lulububu.de>
  • Loading branch information
joerndyherrn and lulujoern committed Aug 6, 2022
1 parent 927b92f commit 1a15c93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Maker/AdminMaker.php
Expand Up @@ -158,7 +158,7 @@ public function interact(InputInterface $input, ConsoleStyle $io, Command $comma
$path = sprintf('%s/config/', $this->projectDirectory);
$servicesFile = $io->ask(
'The services YAML configuration file',
is_file($path.'admin.yaml') ? 'admin.yaml' : 'services.yaml',
$input->getOption('services') ?? (is_file($path.'admin.yaml') ? 'admin.yaml' : 'services.yaml'),
[Validators::class, 'validateServicesFile']
);
$id = $io->ask(
Expand Down

0 comments on commit 1a15c93

Please sign in to comment.