Skip to content

Commit 0649f38

Browse files
committed
Add public dir to phroute
1 parent c51b215 commit 0649f38

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"

phroute-2.2/index.php renamed to phroute-2.2/public/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
require __DIR__.'/vendor/autoload.php';
3+
require __DIR__.'/../vendor/autoload.php';
44

55
use Phroute\Phroute\RouteCollector;
66

@@ -14,7 +14,7 @@
1414
// just same as fastroute:
1515
// https://github.com/nikic/FastRoute/issues/110#issuecomment-273760186
1616
// Strip prefix
17-
$prefix = '/PHP-Frameworks-Bench/phroute-2.2';
17+
$prefix = '/PHP-Frameworks-Bench/phroute-2.2/public';
1818
if ($prefix !== '' && strpos($uri, $prefix) === 0) {
1919
$uri = substr($uri, strlen($prefix));
2020
}

0 commit comments

Comments
 (0)