protected function _actionRead(AnCommandContext $context)
    {
        if (! $this->_state->viewer->guest()) {
            $this->_state->setItem($this->_state->viewer);
            $this->getResponse()->setRedirect(route($this->_state->viewer->getURL()));
        }

        return $this->_state->viewer;
    }
protected function _actionRead(AnCommandContext $context)
    {
        if (! $this->_state->viewer->guest()) {
            $this->_state->setItem($this->_state->viewer);
            $this->getResponse()->setRedirect(route($this->_state->viewer->getURL()));
        }

        return $this->_state->viewer;
    }
protected function _actionRead ( AnCommandContext $ context ) { if ( ! $ this -> _state -> viewer -> guest ( ) ) { $ this -> _state -> setItem ( $ this -> _state -> viewer ) ; $ this -> getResponse ( ) -> setRedirect ( route ( $ this -> _state -> viewer -> getURL ( ) ) ) ; } return $ this -> _state -> viewer ; }
Return the session.

@param AnCommandContext $context Command chain context
Return the session .