mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-24 08:00:13 -06:00
20 lines
675 B
PHP
Executable File
20 lines
675 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
use Shlinkio\Shlink\CLI\Factory\InstallApplicationFactory;
|
|
use Symfony\Component\Console\Application;
|
|
use Symfony\Component\Console\Helper\QuestionHelper;
|
|
use Symfony\Component\Filesystem\Filesystem;
|
|
use Zend\ServiceManager\Factory\InvokableFactory;
|
|
use Zend\ServiceManager\ServiceManager;
|
|
|
|
chdir(dirname(__DIR__));
|
|
|
|
require __DIR__ . '/../vendor/autoload.php';
|
|
|
|
$container = new ServiceManager(['factories' => [
|
|
Application::class => InstallApplicationFactory::class,
|
|
Filesystem::class => InvokableFactory::class,
|
|
QuestionHelper::class => InvokableFactory::class,
|
|
]]);
|
|
$container->build(Application::class, ['isUpdate' => true])->run();
|