Skip to content

Loading…

tiny refactoring for consistency #6048

Merged
merged 1 commit into from

2 participants

@Tobion
Symfony member

no need to use the iterator within the class. not done anywhere else.

@fabpot fabpot added a commit that referenced this pull request
@fabpot fabpot 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.
c4631c5
@fabpot fabpot merged commit ea2bb09 into symfony:2.1

1 check passed

Details default The Travis build passed
@mmucklo mmucklo pushed a commit that referenced this pull request
@fabpot fabpot 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.
9ca7723
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 18, 2012
  1. @Tobion
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Symfony/Component/Routing/RouteCollection.php
View
2 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());
}
Something went wrong with that request. Please try again.