Ensured install tool knows the install command is the only one

This commit is contained in:
Alejandro Celaya 2018-09-16 18:47:42 +02:00
parent 13c3629cd6
commit d4168bebc6
4 changed files with 4 additions and 2 deletions

View file

@ -1,5 +1,6 @@
#!/usr/bin/env php
<?php
declare(strict_types=1);
use Shlinkio\Shlink\CLI\Factory\InstallApplicationFactory;
use Shlinkio\Shlink\CLI\Install\Plugin\DatabaseConfigCustomizer;

View file

@ -1,5 +1,6 @@
#!/usr/bin/env php
<?php
declare(strict_types=1);
use Shlinkio\Shlink\CLI\Factory\InstallApplicationFactory;
use Shlinkio\Shlink\CLI\Install\Plugin\DatabaseConfigCustomizer;

View file

@ -102,7 +102,7 @@ class InstallCommand extends Command
$this->io->writeln([
'<info>Welcome to Shlink!!</info>',
'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

View file

@ -50,7 +50,7 @@ class InstallApplicationFactory implements FactoryInterface
$isUpdate
);
$app->add($command);
$app->setDefaultCommand($command->getName());
$app->setDefaultCommand($command->getName(), true);
return $app;
}