searching route return relative path

This commit is contained in:
Manuel Raynaud
2013-09-11 09:48:41 +02:00
parent 05470715d6
commit 557940c5cf
2 changed files with 3 additions and 2 deletions

View File

@@ -235,7 +235,7 @@ class BaseController extends ContainerAware
* @throws \InvalidArgumentException When the router doesn't exist
* @return string The generated URL
*/
protected function getRouteFromRouter($routerName, $routeId, $parameters = array(), $referenceType = Router::ABSOLUTE_PATH)
protected function getRouteFromRouter($routerName, $routeId, $parameters = array(), $referenceType = Router::RELATIVE_PATH)
{
/** @var Router $router */
$router = $this->container->get($routerName);