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 3
3
4
4
use App \Kernel ;
5
5
use Symfony \Bundle \FrameworkBundle \Console \Application ;
6
- use Symfony \Component \Console \Input \ArgvInput ;
7
6
use Symfony \Component \Debug \Debug ;
8
7
use Symfony \Component \Dotenv \Dotenv ;
9
8
@@ -22,9 +21,8 @@ if (!isset($_SERVER['APP_ENV'])) {
22
21
(new Dotenv ())->load (__DIR__ .'/../.env ' );
23
22
}
24
23
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 ));
28
26
29
27
if ($ debug ) {
30
28
umask (0000 );
@@ -36,4 +34,4 @@ if ($debug) {
36
34
37
35
$ kernel = new Kernel ($ env , $ debug );
38
36
$ application = new Application ($ kernel );
39
- $ application ->run ($ input );
37
+ $ application ->run ();
You can’t perform that action at this time.
0 commit comments