8000 [FrameworkBundle] Removed global variable from router script · symfony/symfony@4a3f6d5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4a3f6d5

Browse files
committed
[FrameworkBundle] Removed global variable from router script
1 parent 519d431 commit 4a3f6d5

File tree

1 file changed

+2
-4
lines changed
  • src/Symfony/Bundle/FrameworkBundle/Resources/config

1 file changed

+2
-4
lines changed

src/Symfony/Bundle/FrameworkBundle/Resources/config/router.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,10 @@
2323
if (isset($_SERVER['SCRIPT_FILENAME'])) {
2424
return false;
2525
} else {
26-
$controller = 'app.php';
27-
2826
$_SERVER['SCRIPT_FILENAME'] = $_SERVER['DOCUMENT_ROOT']
2927
. DIRECTORY_SEPARATOR
30-
. $controller
28+
. 'app.php'
3129
;
3230

33-
require $controller;
31+
require 'app.php';
3432
}

0 commit comments

Comments
 (0)
0