public/index.php line 16

Open in your IDE?
  1. <?php
  2. use App\Kernel;
  3. header('Access-Control-Allow-Origin: *');
  4. header("Access-Control-Allow-Headers: *");
  5. header("Access-Control-Allow-Methods: *");
  6. header("Allow: *");
  7. $method $_SERVER['REQUEST_METHOD'];
  8. if ($method === "OPTIONS") {
  9.     die();
  10. }
  11. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  12. return function (array $context) {
  13.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  14. };