Symfony\Component\Routing\RouteCollection::getIterator
Gets the current RouteCollection as an Iterator that includes all routes.
It implements \IteratorAggregate.
Signature
public function getIterator()
Returns
- ArrayIterator
- An \ArrayIterator object for iterating over routes