public function RouteCollection::getIterator in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/routing/RouteCollection.php \Symfony\Component\Routing\RouteCollection::getIterator()
Gets the current RouteCollection as an Iterator that includes all routes.
It implements \IteratorAggregate.
Return value
\ArrayIterator An \ArrayIterator object for iterating over routes
See also
all()
2 methods override RouteCollection::getIterator()
- ChainRouteCollection::getIterator in vendor/
symfony-cmf/ routing/ ChainRouteCollection.php - Gets the current RouteCollection as an Iterator that includes all routes.
- LazyRouteCollection::getIterator in vendor/
symfony-cmf/ routing/ LazyRouteCollection.php - Gets the current RouteCollection as an Iterator that includes all routes.
File
- vendor/
symfony/ routing/ RouteCollection.php, line 54
Class
- RouteCollection
- A RouteCollection represents a set of Route instances.
Namespace
Symfony\Component\RoutingCode
public function getIterator() {
return new \ArrayIterator($this->routes);
}