<?php
use App\Kernel;
if (!defined('APP_DEV')) {
define('APP_DEV', 'dev');
}
if (!defined('APP_PROD')) {
define('APP_PROD', 'prod');
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
if (!defined('APP_ENV')) {
define('APP_ENV', $context['APP_ENV']);
}
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};