public/index.php line 8

  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. use Chamilo\Kernel;
  4. use Symfony\Component\HttpFoundation\RedirectResponse as HttpRedirectResponse;
  5. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  6. return function (array $context) {
  7.     // Chamilo
  8.     $isInstalled $context['APP_INSTALLED'] ?? null;
  9.     if (!== (int) $isInstalled) {
  10.         return new HttpRedirectResponse('./main/install/index.php');
  11.     }
  12.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  13. };