<?php
use App\Kernel;
ini_set('max_execution_time', '3600');
ini_set('memory_limit', '5000M');
define('BASE_DIR',dirname(__DIR__));
define('BASE_URL', $_SERVER["REQUEST_SCHEME"].'://'.$_SERVER["HTTP_HOST"]);
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};