public/index.php line 14

Open in your IDE?
  1. <?php
  2. //header('Access-Control-Allow-Origin: *');
  3. //header("Access-Control-Allow-Headers: X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method");
  4. //header("Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, DELETE");
  5. //header("Allow: GET, POST, OPTIONS, PUT, DELETE");
  6. //$method = $_SERVER['REQUEST_METHOD'];
  7. //if ($method == "OPTIONS") {
  8. //    die();
  9. //}
  10. use App\Kernel;
  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. };