Moved common bootstrapping code to run.php script

This commit is contained in:
Alejandro Celaya
2019-12-27 14:02:43 +01:00
parent 3fdba53995
commit 25243a10ec
5 changed files with 30 additions and 20 deletions

View File

@@ -2,11 +2,5 @@
declare(strict_types=1);
use Psr\Container\ContainerInterface;
use Zend\Expressive\Application;
(function () {
/** @var ContainerInterface $container */
$container = include __DIR__ . '/../config/container.php';
$container->get(Application::class)->run();
})();
$run = require __DIR__ . '/../config/run.php';
$run();