You are here

public function PagedRouteCollection::next in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony-cmf/routing/PagedRouteCollection.php \Symfony\Cmf\Component\Routing\PagedRouteCollection::next()

File

vendor/symfony-cmf/routing/PagedRouteCollection.php, line 82

Class

PagedRouteCollection
Provides a route collection which avoids having all routes in memory.

Namespace

Symfony\Cmf\Component\Routing

Code

public function next() {
  $result = next($this->currentRoutes);
  if (false === $result) {
    $this
      ->loadNextElements($this->current + 1);
  }
  $this->current++;
}