You are here

public function Session::getIterator in Zircon Profile 8

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

Returns an iterator for attributes.

Return value

\ArrayIterator An \ArrayIterator instance

File

vendor/symfony/http-foundation/Session/Session.php, line 143

Class

Session
Session.

Namespace

Symfony\Component\HttpFoundation\Session

Code

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