mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Abstracted filesystem manipulation in InstallCommand
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
<?php
|
||||
use Shlinkio\Shlink\CLI\Command\Install\InstallCommand;
|
||||
use Symfony\Component\Console\Application;
|
||||
use Symfony\Component\Filesystem\Filesystem;
|
||||
use Zend\Config\Writer\PhpArray;
|
||||
|
||||
chdir(dirname(__DIR__));
|
||||
@@ -9,7 +10,7 @@ chdir(dirname(__DIR__));
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
$app = new Application();
|
||||
$command = new InstallCommand(new PhpArray());
|
||||
$command = new InstallCommand(new PhpArray(), new Filesystem());
|
||||
$app->add($command);
|
||||
$app->setDefaultCommand($command->getName());
|
||||
$app->run();
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<?php
|
||||
use Shlinkio\Shlink\CLI\Command\Install\InstallCommand;
|
||||
use Symfony\Component\Console\Application;
|
||||
use Symfony\Component\Filesystem\Filesystem;
|
||||
use Zend\Config\Writer\PhpArray;
|
||||
|
||||
chdir(dirname(__DIR__));
|
||||
@@ -9,7 +10,7 @@ chdir(dirname(__DIR__));
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
$app = new Application();
|
||||
$command = new InstallCommand(new PhpArray(), true);
|
||||
$command = new InstallCommand(new PhpArray(), new Filesystem(), true);
|
||||
$app->add($command);
|
||||
$app->setDefaultCommand($command->getName());
|
||||
$app->run();
|
||||
|
||||
Reference in New Issue
Block a user