Skip to content

Commit 72ab86e

Browse files
[symfony/framework-bundle/8.1] Add Kernel::getAllowedEnvs() = prod+dev+test
1 parent 2bf874b commit 72ab86e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
namespace App;
4+
5+
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
6+
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
7+
8+
class Kernel extends BaseKernel
9+
{
10+
use MicroKernelTrait;
11+
12+
/**
13+
* @return list<string> An array of allowed values for APP_ENV
14+
*/
15+
private function getAllowedEnvs(): array
16+
{
17+
return ['prod', 'dev', 'test'];
18+
}
19+
}

0 commit comments

Comments
 (0)