We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd3abd2 commit 34d2e6aCopy full SHA for 34d2e6a
resources/web/app_test.php
@@ -1,6 +1,5 @@
1
<?php
2
3
-
4
use Symfony\Component\HttpFoundation\Request;
5
6
$kernel = include __DIR__.'/../../bootstrap/kernel_bootstrap.php';
resources/web/router.php
@@ -1,7 +1,15 @@
+$req = $_SERVER['REQUEST_URI'];
+
+// If this looks like a file request then return
+// false and serve the file
7
+if (preg_match('^\.[A-Za-z]{3,4}$^', $req)) {
8
+ return false;
9
+}
10
11
+// otherwise lets run the application
12
$_SERVER['DOCUMENT_ROOT'] = __DIR__;
13
$_SERVER['SCRIPT_FILENAME'] = __DIR__.DIRECTORY_SEPARATOR.'app_test.php';
14
15
require 'app_test.php';
0 commit comments