shlink/config/run.php

16 lines
388 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
2020-01-01 14:11:53 -06:00
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();
};