<?php

use App\Kernel;

require_once dirname(__DIR__).'/vendor/autoload_runtime.php';

return function (array $context) {
    // For moment, we use dev environment for all environments because we need debug mode for prod also
    if (($context['APP_ENV']) === 'dev') {
        $_SERVER['HTTPS'] = 'on';
    }
    return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
