mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-23 21:27:44 +03:00
15 lines
397 B
PHP
15 lines
397 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Psr\Container\ContainerInterface;
|
|
use Symfony\Component\Console\Application as CliApp;
|
|
use Zend\Expressive\Application;
|
|
|
|
return function (bool $isCli = false): void {
|
|
/** @var ContainerInterface $container */
|
|
$container = include __DIR__ . '/container.php';
|
|
$app = $container->get($isCli ? CliApp::class : Application::class);
|
|
|
|
$app->run();
|
|
};
|