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.     $allowedIPs   = ["109.117.207.51""2.228.160.98""192.168.65.1"];
  6.     $should_debug = (in_array($context['REMOTE_ADDR'], $allowedIPs) || (bool)$context['APP_DEBUG']);
  7.     if ( ! defined('ENV_DEVELOPMENT')) define('ENV_DEVELOPMENT'$should_debug);
  8.     if ( ! defined('ENV_PRODUCTION')) define('ENV_PRODUCTION',  ! $should_debug);
  9.     return new Kernel($context['APP_ENV'], $should_debug);
  10. };