File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ use Symfony\Bundle\FrameworkBundle\Console\Application;
7
7
use Symfony \Component \Console \Input \ArrayInput ;
8
8
use Symfony \Component \Console \Input \ArgvInput ;
9
9
10
- // fixme: hack
11
10
$ input = new ArgvInput ();
12
11
$ env = $ input ->getParameterOption (array ('--env ' , '-e ' ), 'phpcr ' );
13
12
Original file line number Diff line number Diff line change 7
7
8
8
require_once __DIR__ .'/../../bootstrap/bootstrap.php ' ;
9
9
10
- // fixme: hack!!
11
- $ env = 'phpcr ' ;
10
+ $ request = Request::createFromGlobals ();
11
+ $ env = $ request ->query ->get ('env ' , 'phpcr ' );
12
+ $ request ->query ->remove ('env ' );
12
13
13
14
$ kernel = include __DIR__ .'/../../bootstrap/kernel_bootstrap.php ' ;
14
15
$ kernel ->loadClassCache ();
15
- $ request = Request::createFromGlobals ();
16
16
$ response = $ kernel ->handle ($ request );
17
17
$ response ->send ();
18
18
$ kernel ->terminate ($ request , $ response );
You can’t perform that action at this time.
0 commit comments