2016-08-15 02:21:14 -05:00
|
|
|
#!/usr/bin/env php
|
|
|
|
<?php
|
2017-07-03 13:46:35 -05:00
|
|
|
use Shlinkio\Shlink\CLI\Command\Install\InstallCommand;
|
2016-08-15 02:21:14 -05:00
|
|
|
use Symfony\Component\Console\Application;
|
2017-07-04 13:14:22 -05:00
|
|
|
use Symfony\Component\Filesystem\Filesystem;
|
2016-08-15 02:21:14 -05:00
|
|
|
use Zend\Config\Writer\PhpArray;
|
|
|
|
|
|
|
|
chdir(dirname(__DIR__));
|
|
|
|
|
|
|
|
require __DIR__ . '/../vendor/autoload.php';
|
|
|
|
|
|
|
|
$app = new Application();
|
2017-07-04 13:14:22 -05:00
|
|
|
$command = new InstallCommand(new PhpArray(), new Filesystem(), true);
|
2017-07-03 06:10:16 -05:00
|
|
|
$app->add($command);
|
|
|
|
$app->setDefaultCommand($command->getName());
|
2016-08-15 02:21:14 -05:00
|
|
|
$app->run();
|