Update RouteCollection.php

This commit is contained in:
Anton 2015-09-02 19:22:40 +03:00
parent f3bc7d1c23
commit 04db806995

View File

@ -90,11 +90,8 @@ class RouteCollection
public function getPath($name, array $parameters = [])
{
$parts = $this->reverse[$name][0];
array_walk($parts, [$this, 'fixPathPart'], $parameters);
$path = implode('', $parts);
$path = '/' . ltrim($path, '/');
$path = '/' . ltrim(implode('', $parts), '/');
return $path;
}
}