Closed Thinkscape closed 9 years ago
I think it's this part of ResourceGraphRoute.php that needs refactoring...
// If the URI does not begin by the route, we can stop immediately
if (substr($path, 0, strlen($this->route)) !== $this->route) {
return null;
}
// If we have only one segment (for instance "users"), then the next path to analyze is in fact
// an empty string, hence the ternary condition
$pathParts = explode('/', trim($path, '/'), 2);
$subPath = count($pathParts) === 1 ? '' : end($pathParts);
Oh. Yeah, definitely not good!
Can you submit a PR ? :D
Did you have some time to fix this issue @Thinkscape ?
@Thinkscape that will be fixed in 0.3.5
Given route:
I can now access the following urls:
Weird :-)