protected function getMessagesFromContainer()
    {
        $container = $this->getContainer();

        $namespaces = array();
        foreach ($container as $namespace => $messages) {
            if (isset($this->messages[$namespace])) {
                $this->messages[$namespace] = array_merge($this->messages[$namespace], $messages);
            } else {
                $this->messages[$namespace] = $messages;
            }
            $namespaces[] = $namespace;
        }

        foreach ($namespaces as $namespace) {
            unset($container->{$namespace});
        }
    }
protected function getMessagesFromContainer()
    {
        $container = $this->getContainer();

        $namespaces = array();
        foreach ($container as $namespace => $messages) {
            if (isset($this->messages[$namespace])) {
                $this->messages[$namespace] = array_merge($this->messages[$namespace], $messages);
            } else {
                $this->messages[$namespace] = $messages;
            }
            $namespaces[] = $namespace;
        }

        foreach ($namespaces as $namespace) {
            unset($container->{$namespace});
        }
    }
protected function getMessagesFromContainer ( ) { $ container = $ this -> getContainer ( ) ; $ namespaces = array ( ) ; foreach ( $ container as $ namespace => $ messages ) { if ( isset ( $ this -> messages [ $ namespace ] ) ) { $ this -> messages [ $ namespace ] = array_merge ( $ this -> messages [ $ namespace ] , $ messages ) ; } else { $ this -> messages [ $ namespace ] = $ messages ; } $ namespaces [ ] = $ namespace ; } foreach ( $ namespaces as $ namespace ) { unset ( $ container -> { $ namespace } ) ; } }
Pull messages from the session container, and merge them with current messages

Iterates through the session container, removing messages into the local
scope.

@return void
Pull messages from the session container and merge them with current messages