From d4168bebc66aeb546a4743d26da0fe2c5fcf47f3 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 16 Sep 2018 18:47:42 +0200 Subject: [PATCH] Ensured install tool knows the install command is the only one --- bin/install | 1 + bin/update | 1 + module/CLI/src/Command/Install/InstallCommand.php | 2 +- module/CLI/src/Factory/InstallApplicationFactory.php | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/install b/bin/install index d83df5f66..0d8dc72cb 100755 --- a/bin/install +++ b/bin/install @@ -1,5 +1,6 @@ #!/usr/bin/env php io->writeln([ 'Welcome to Shlink!!', - 'This will guide you through the installation process.', + 'This tool will guide you through the installation process.', ]); // Check if a cached config file exists and drop it if so diff --git a/module/CLI/src/Factory/InstallApplicationFactory.php b/module/CLI/src/Factory/InstallApplicationFactory.php index 274100b46..c20d67069 100644 --- a/module/CLI/src/Factory/InstallApplicationFactory.php +++ b/module/CLI/src/Factory/InstallApplicationFactory.php @@ -50,7 +50,7 @@ public function __invoke(ContainerInterface $container, $requestedName, array $o $isUpdate ); $app->add($command); - $app->setDefaultCommand($command->getName()); + $app->setDefaultCommand($command->getName(), true); return $app; }