8000 [FrameworkBundle] Fixed built-in server router script · symfony/symfony@519d431 · GitHub
[go: up one dir, main page]

Skip to content

Commit 519d431

Browse files
committed
[FrameworkBundle] Fixed built-in server router script
1 parent d9a0a17 commit 519d431

File tree

1 file changed

+8
-1
lines changed
  • src/Symfony/Bundle/FrameworkBundle/Resources/config

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,12 @@
2323
if (isset($_SERVER['SCRIPT_FILENAME'])) {
2424
return false;
2525
} else {
26-
require 'app.php';
26+
$controller = 'app.php';
27+
28+
$_SERVER['SCRIPT_FILENAME'] = $_SERVER['DOCUMENT_ROOT']
29+
. DIRECTORY_SEPARATOR
30+
. $controller
31+
;
32+
33+
require $controller;
2734
}

0 commit comments

Comments
 (0)
0