shlink/bin/update

17 lines
452 B
Text
Raw Normal View History

2016-08-15 10:21:14 +03:00
#!/usr/bin/env php
<?php
use Shlinkio\Shlink\CLI\Command\Install\InstallCommand;
2016-08-15 10:21:14 +03:00
use Symfony\Component\Console\Application;
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();
$command = new InstallCommand(new PhpArray(), new Filesystem(), true);
$app->add($command);
$app->setDefaultCommand($command->getName());
2016-08-15 10:21:14 +03:00
$app->run();