Skip to content

Commit

Permalink
Ensured install tool knows the install command is the only one
Browse files Browse the repository at this point in the history
  • Loading branch information
acelaya committed Sep 16, 2018
1 parent 13c3629 commit d4168be
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions bin/install
@@ -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;
Expand Down
1 change: 1 addition & 0 deletions bin/update
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion module/CLI/src/Command/Install/InstallCommand.php
Expand Up @@ -102,7 +102,7 @@ protected function execute(InputInterface $input, OutputInterface $output): void

$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
Expand Down
2 changes: 1 addition & 1 deletion module/CLI/src/Factory/InstallApplicationFactory.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit d4168be

Please sign in to comment.