[symfony/framework-bundle/8.1] Add Kernel::getAllowedEnvs() = prod+dev+test (#1516)

This commit is contained in:
Nicolas Grekas
2026-03-27 13:51:25 +01:00
committed by GitHub
parent 390d893ca1
commit e685563fd3
11 changed files with 151 additions and 0 deletions
@@ -0,0 +1,19 @@
<?php
namespace App;
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
class Kernel extends BaseKernel
{
use MicroKernelTrait;
/**
* @return list<string> An array of allowed values for APP_ENV
*/
private function getAllowedEnvs(): array
{
return ['prod', 'dev', 'test'];
}
}