Release 2.25 (#5109)

This commit is contained in:
Kevin Papst
2024-11-21 22:44:49 +01:00
committed by GitHub
parent 49eb7068c9
commit 0c26a2678e
261 changed files with 6431 additions and 7426 deletions

View File

@@ -14,10 +14,10 @@ require __DIR__ . '/../vendor/autoload.php';
(new Dotenv())->loadEnv(dirname(__DIR__) . '/.env');
$env = $_SERVER['APP_ENV'] ?? 'prod';
$env = is_string($_SERVER['APP_ENV']) ? $_SERVER['APP_ENV'] : 'prod';
$debug = (bool) ($_SERVER['APP_DEBUG'] ?? (in_array($env, ['dev', 'test'])));
$kernel = new Kernel($env, $debug);
$kernel->boot();
return $kernel->getContainer()->get('doctrine')->getManager(); // @phpstan-ignore-line
return $kernel->getContainer()->get('doctrine')->getManager(); // @phpstan-ignore method.notFound