Permalink
Browse files

merged branch Tobion/patch-2 (PR #6048)

This PR was merged into the 2.1 branch.

Commits
-------

ea2bb09 tiny refactoring for consistency

Discussion
----------

tiny refactoring for consistency

no need to use the iterator within the class. not done anywhere else.
  • Loading branch information...
2 parents 461db28 + ea2bb09 commit c4631c5fe6fd3463644fecaa8e7e416794456846 @fabpot fabpot committed Nov 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Symfony/Component/Routing/RouteCollection.php
@@ -267,7 +267,7 @@ public function getPrefix()
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());
}

0 comments on commit c4631c5

Please sign in to comment.