You are here

public function ChainRouteCollection::getIterator in Zircon Profile 8

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

Class

ChainRouteCollection

Namespace

Symfony\Cmf\Component\Routing

Code

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