web/index.php line 11

Open in your IDE?
  1. <?php
  2. use App\Kernel;
  3. // If getting a CORS OPTIONS request simply return the header
  4. if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
  5.     header('Access-Control-Max-Age: 3600'true);
  6.     exit(0);
  7. }
  8. require_once dirname(__DIR__) . '/vendor/autoload_runtime.php';
  9. return function (array $context) {
  10.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  11. };