Change delimiter for repository regex

'#' is the default delimiter for route regexes in
`Symfony\Component\Routing\RouteCompiler`, so use this.
This commit is contained in:
Christian Schorn
2012-10-31 14:16:58 +01:00
parent ffe27b2a75
commit 57b96f448f

View File

@@ -21,7 +21,7 @@ class Routing
$app = $this->app;
$quoted_paths = array_map(
function ($repo) use ($app) {
return preg_quote($app['util.routing']->getRelativePath($repo['path']), '/');
return preg_quote($app['util.routing']->getRelativePath($repo['path']), '#');
},
$this->app['git']->getRepositories($this->app['git.repos'])
);