Skip to content

Commit 4e0042b

Browse files
committed
Add public dir to fastroute
1 parent e710ff7 commit 4e0042b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/sh
2-
url="$base/$fw/index.php/hello/index"
2+
url="$base/$fw/public/index.php/hello/index"

fastroute-1.3/index.php renamed to fastroute-1.3/public/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// https://github.com/nikic/FastRoute#usage
44
// Here's a basic usage example:
55

6-
require __DIR__.'/vendor/autoload.php';
6+
require __DIR__.'/../vendor/autoload.php';
77

88

99
$dispatcher = FastRoute\simpleDispatcher(function(FastRoute\RouteCollector $r) {
@@ -22,7 +22,7 @@
2222

2323
// https://github.com/nikic/FastRoute/issues/110#issuecomment-273760186
2424
// Strip prefix
25-
$prefix = '/PHP-Frameworks-Bench/fastroute-1.3';
25+
$prefix = '/PHP-Frameworks-Bench/fastroute-1.3/public';
2626
if ($prefix !== '' && strpos($uri, $prefix) === 0) {
2727
$uri = substr($uri, strlen($prefix));
2828
}

0 commit comments

Comments
 (0)