public/index.php line 7

Open in your IDE?
  1. <?php
  2. use App\Kernel;
  3. use Symfony\Component\ErrorHandler\Debug;
  4. use Symfony\Component\VarDumper\VarDumper;
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     if($_SERVER['REMOTE_ADDR'] == '13.36.8.110' || $_SERVER['REMOTE_ADDR'] == '3.143.166.126'){
  8.         $context['APP_DEBUG'] = true;
  9.         $context['APP_ENV'] = 'dev';
  10.     }
  11.     if ($context['APP_DEBUG'] ) {
  12.         umask(0000);
  13.         Debug::enable();
  14.     }else {
  15.         VarDumper::setHandler(function($var) {});
  16.     }
  17.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  18. };