2016-08-14 10:09:23 +03:00
|
|
|
#!/usr/bin/env php
|
|
|
|
<?php
|
2017-07-05 19:12:03 +03:00
|
|
|
use Shlinkio\Shlink\CLI\Factory\InstallApplicationFactory;
|
2016-08-19 16:50:08 +03:00
|
|
|
use Symfony\Component\Console\Application;
|
2017-07-05 21:04:44 +03:00
|
|
|
use Symfony\Component\Console\Helper\QuestionHelper;
|
|
|
|
use Symfony\Component\Filesystem\Filesystem;
|
|
|
|
use Zend\ServiceManager\Factory\InvokableFactory;
|
2017-07-05 19:12:03 +03:00
|
|
|
use Zend\ServiceManager\ServiceManager;
|
2016-08-14 11:30:43 +03:00
|
|
|
|
2016-08-19 16:50:08 +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,
|
2017-07-05 21:04:44 +03:00
|
|
|
Filesystem::class => InvokableFactory::class,
|
|
|
|
QuestionHelper::class => InvokableFactory::class,
|
2017-07-05 19:12:03 +03:00
|
|
|
]]);
|
|
|
|
$container->build(Application::class)->run();
|