File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 33
44use App \Kernel ;
55use Symfony \Bundle \FrameworkBundle \Console \Application ;
6- use Symfony \Component \Console \Input \ArgvInput ;
76use Symfony \Component \Debug \Debug ;
87use Symfony \Component \Dotenv \Dotenv ;
98
@@ -22,9 +21,8 @@ if (!isset($_SERVER['APP_ENV'])) {
2221 (new Dotenv ())->load (__DIR__ .'/../.env ' );
2322}
2423
25- $ input = new ArgvInput ();
26- $ env = $ input ->getParameterOption (['--env ' , '-e ' ], $ _SERVER ['APP_ENV ' ] ?? 'dev ' , true );
27- $ debug = (bool ) ($ _SERVER ['APP_DEBUG ' ] ?? ('prod ' !== $ env )) && !$ input ->hasParameterOption ('--no-debug ' , true );
24+ $ env = $ _SERVER ['APP_ENV ' ] ?? 'dev ' ;
25+ $ debug = (bool ) ($ _SERVER ['APP_DEBUG ' ] ?? ('prod ' !== $ env ));
2826
2927if ($ debug ) {
3028 umask (0000 );
@@ -36,4 +34,4 @@ if ($debug) {
3634
3735$ kernel = new Kernel ($ env , $ debug );
3836$ application = new Application ($ kernel );
39- $ application ->run ($ input );
37+ $ application ->run ();
You can’t perform that action at this time.
0 commit comments