You are here

public function LazyRouteCollection::getIterator in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony-cmf/routing/LazyRouteCollection.php \Symfony\Cmf\Component\Routing\LazyRouteCollection::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

Overrides RouteCollection::getIterator

See also

all()

File

vendor/symfony-cmf/routing/LazyRouteCollection.php, line 35

Class

LazyRouteCollection

Namespace

Symfony\Cmf\Component\Routing

Code

public function getIterator() {
  return new \ArrayIterator($this
    ->all());
}