mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-27 01:11:39 -06:00
16 lines
388 B
PHP
16 lines
388 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Mezzio\Application;
|
|
use Psr\Container\ContainerInterface;
|
|
use Symfony\Component\Console\Application as CliApp;
|
|
|
|
return function (bool $isCli = false): void {
|
|
/** @var ContainerInterface $container */
|
|
$container = include __DIR__ . '/container.php';
|
|
$app = $container->get($isCli ? CliApp::class : Application::class);
|
|
|
|
$app->run();
|
|
};
|