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