public/index.php line 6

Open in your IDE?
  1. <?php
  2. use App\Kernel;
  3. use App\Cache\AppCache;
  4. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  5. return function (array $context) {
  6.     if (($context['APP_ENV'] ?? '') === 'dev' && function_exists('opcache_reset')) {
  7.         @opcache_reset();
  8.     }
  9.     $kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  10.     if ($context['APP_ENV'] === 'prod') {
  11.         $kernel = new AppCache($kernel);
  12.     }
  13.     return $kernel;
  14. };