Merge pull request #213 from skipperbent/v3-development

Optimisations
This commit is contained in:
Simon Sessingø
2017-02-09 13:34:03 +01:00
committed by GitHub
3 changed files with 7 additions and 4 deletions
+3 -1
View File
@@ -93,7 +93,9 @@ class Input
$path = $original[$property];
foreach (array_values($index) as $i) {
$fileValues = array_values($index);
foreach ($fileValues as $i) {
$path = $path[$i];
}
@@ -61,9 +61,9 @@ class RouteResource extends LoadableRoute implements IControllerRoute
public function findUrl($method = null, $parameters = null, $name = null)
{
$method = array_search($name, $this->names, false);
if ($method !== false) {
return rtrim($this->url . $this->urls[$method], '/') . '/';
$url = array_search($name, $this->names, false);
if ($url !== false) {
return rtrim($this->url . $this->urls[$url], '/') . '/';
}
return $this->url;
+1
View File
@@ -125,6 +125,7 @@ class Router
* @param array $routes
* @param IGroupRoute|null $group
* @param IRoute|null $parent
* @throws NotFoundHttpException
*/
protected function processRoutes(array $routes, IGroupRoute $group = null, IRoute $parent = null)
{