public/index.php line 5

  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };
  7. Request::setTrustedProxies(
  8.     // trust *all* requests (the 'REMOTE_ADDR' string is replaced at
  9.     // run time by $_SERVER['REMOTE_ADDR'])
  10.     ['127.0.0.1''REMOTE_ADDR'],
  11.     // if you're using ELB, otherwise use a constant from above
  12.     Request::HEADER_X_FORWARDED_AWS_ELB
  13. );