You are here

public function FlashBag::getIterator in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Session/Flash/FlashBag.php \Symfony\Component\HttpFoundation\Session\Flash\FlashBag::getIterator()

Returns an iterator for flashes.

Return value

\ArrayIterator An \ArrayIterator instance

Deprecated

since version 2.4, to be removed in 3.0.

File

vendor/symfony/http-foundation/Session/Flash/FlashBag.php, line 176

Class

FlashBag
FlashBag flash message container.

Namespace

Symfony\Component\HttpFoundation\Session\Flash

Code

public function getIterator() {
  @trigger_error('The ' . __METHOD__ . ' method is deprecated since version 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
  return new \ArrayIterator($this
    ->all());
}