tiny refactoring for consistency

This commit is contained in:
Tobias Schultze 2012-11-18 18:36:28 +01:00
parent 461db28d33
commit ea2bb09d55

View File

@ -267,7 +267,7 @@ class RouteCollection implements \IteratorAggregate, \Countable
public function getResources()
{
$resources = $this->resources;
foreach ($this as $routes) {
foreach ($this->routes as $routes) {
if ($routes instanceof RouteCollection) {
$resources = array_merge($resources, $routes->getResources());
}