Browse Source

Refactoring Route\Finder.

Taylor Otwell 13 years ago
parent
commit
775f11e09b
1 changed files with 1 additions and 2 deletions
  1. 1 2
      system/route/finder.php

+ 1 - 2
system/route/finder.php

@@ -34,8 +34,7 @@ class Finder {
 			return static::$names[$name];
 		}
 
-		$arrayIterator = new \RecursiveArrayIterator(static::$routes);
-		$recursiveIterator = new \RecursiveIteratorIterator($arrayIterator);
+		$recursiveIterator = new \RecursiveIteratorIterator($arrayIterator = new \RecursiveArrayIterator(static::$routes));
 
 		foreach ($recursiveIterator as $iterator)
 		{