<?php
use App\Kernel;
// If getting a CORS OPTIONS request simply return the header
if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
header('Access-Control-Max-Age: 3600', true);
exit(0);
}
require_once dirname(__DIR__) . '/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};