|
@@ -114,13 +114,13 @@ class ProjectUrlMatcher extends Symfony\Tests\Component\Routing\Fixtures\Redirec
|
|
|
if (0 === strpos($pathinfo, '/a')) {
|
|
|
if (0 === strpos($pathinfo, '/a/b')) {
|
|
|
// foo
|
|
|
- if (0 === strpos($pathinfo, '/a/b') && preg_match('#^/a/b/(?P<foo>[^/]+?)$#x', $pathinfo, $matches)) {
|
|
|
+ if (preg_match('#^/a/b/(?P<foo>[^/]+?)$#x', $pathinfo, $matches)) {
|
|
|
$matches['_route'] = 'foo';
|
|
|
return $matches;
|
|
|
}
|
|
|
|
|
|
// bar
|
|
|
- if (0 === strpos($pathinfo, '/a/b') && preg_match('#^/a/b/(?P<bar>[^/]+?)$#x', $pathinfo, $matches)) {
|
|
|
+ if (preg_match('#^/a/b/(?P<bar>[^/]+?)$#x', $pathinfo, $matches)) {
|
|
|
$matches['_route'] = 'bar';
|
|
|
return $matches;
|
|
|
}
|