Gc\Mvc\Controller\Action::getSession PHP Method

getSession() public method

Get session storage
public getSession ( ) : Zend\Session\Container
return Zend\Session\Container
    public function getSession()
    {
        if ($this->session === null) {
            $this->session = new SessionContainer();
        }
        return $this->session;
    }

Usage Example

Example #1
0
 /**
  * Test
  *
  * @return void
  */
 public function testGetSession()
 {
     $this->assertInstanceOf('Zend\\Session\\Container', $this->object->getSession());
 }