public/index.php line 5

Open in your IDE?
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5.     define('FORCE_SSL_ADMIN'true);
  6.     if ( ! empty( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https' ) {
  7.         $_SERVER['HTTPS']='on';
  8.     }
  9.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  10. };