public/index.php line 3

Open in your IDE?
  1. <?php
  2. require_once dirname(__DIR__) . '/vendor/autoload_runtime.php';
  3. if (isset($_SERVER["SERVER_NAME"])) {
  4.     putenv("PLATFORM_ACCESS=1");
  5.     putenv("PLATFORM_DOMAIN={$_SERVER["SERVER_NAME"]}");
  6. }
  7. return function(array $context) {
  8.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  9. };