mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-03-06 12:44:20 +01:00
15 lines
418 B
PHP
15 lines
418 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Kernel;
|
|
|
|
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
|
|
|
|
return static function (array $context): Kernel {
|
|
$appEnv = empty($context['APP_ENV']) ? 'prod' : (string) $context['APP_ENV'];
|
|
$appDebug = empty($context['APP_DEBUG']) ? 'prod' !== $appEnv : filter_var($context['APP_DEBUG'], \FILTER_VALIDATE_BOOL);
|
|
|
|
return new Kernel($appEnv, $appDebug);
|
|
};
|