2016-08-15 10:21:14 +03:00
|
|
|
#!/usr/bin/env php
|
|
|
|
<?php
|
2017-07-05 19:12:03 +03:00
|
|
|
use Shlinkio\Shlink\CLI\Factory\InstallApplicationFactory;
|
2016-08-15 10:21:14 +03:00
|
|
|
use Symfony\Component\Console\Application;
|
2017-07-05 19:12:03 +03:00
|
|
|
use Zend\ServiceManager\ServiceManager;
|
2016-08-15 10:21:14 +03:00
|
|
|
|
|
|
|
chdir(dirname(__DIR__));
|
|
|
|
|
|
|
|
require __DIR__ . '/../vendor/autoload.php';
|
|
|
|
|
2017-07-05 19:12:03 +03:00
|
|
|
$container = new ServiceManager(['factories' => [
|
|
|
|
Application::class => InstallApplicationFactory::class,
|
|
|
|
]]);
|
|
|
|
$container->build(Application::class, ['isUpdate' => true])->run();
|