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. /*if (isset($_SERVER['HTTP_CLIENT_IP'])
  5.     || isset($_SERVER['HTTP_X_FORWARDED_FOR'])
  6.     || !(in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1','109.12.246.151','176.161.166.197','88.127.146.124')) || php_sapi_name() === 'cli-server')
  7. ) {
  8.    exit('Site en maintenance. Merci de réessayer plus tard.');
  9. }*/
  10. return function (array $context) {
  11.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  12. };