This repository was archived by the owner on Nov 27, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,16 @@ require_once __DIR__.'/AppKernel.php';
12
12
13
13
use Symfony \Bundle \FrameworkBundle \Console \Application ;
14
14
use Symfony \Component \Console \Input \ArgvInput ;
15
+ use Symfony \Component \Debug \Debug ;
15
16
16
17
$ input = new ArgvInput ();
17
18
$ env = $ input ->getParameterOption (array ('--env ' , '-e ' ), getenv ('SYMFONY_ENV ' ) ?: 'dev ' );
18
19
$ debug = getenv ('SYMFONY_DEBUG ' ) !== '0 ' && !$ input ->hasParameterOption (array ('--no-debug ' , '' )) && $ env !== 'prod ' ;
19
20
21
+ if ($ debug ) {
22
+ Debug::enable ();
23
+ }
24
+
20
25
$ kernel = new AppKernel ($ env , $ debug );
21
26
$ application = new Application ($ kernel );
22
27
$ application ->run ($ input );
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
use Symfony \Component \HttpFoundation \Request ;
4
+ use Symfony \Component \Debug \Debug ;
4
5
5
6
// If you don't want to setup permissions the proper way, just uncomment the following PHP line
6
7
// read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information
17
18
}
18
19
19
20
$ loader = require_once __DIR__ .'/../app/bootstrap.php.cache ' ;
21
+ Debug::enable ();
22
+
20
23
require_once __DIR__ .'/../app/AppKernel.php ' ;
21
24
22
25
$ kernel = new AppKernel ('dev ' , true );
You can’t perform that action at this time.
0 commit comments