Cartalyst\Sentinel\Sessions\NativeSession::put PHP Method

put() public method

{@inheritDoc}
public put ( $value )
    public function put($value)
    {
        $this->setSession($value);
    }

Usage Example

 public function testPut()
 {
     $session = new NativeSession('__sentinel');
     $class = new stdClass();
     $class->foo = 'bar';
     $session->put($class);
     $this->assertEquals(serialize($class), $_SESSION['__sentinel']);
     unset($_SESSION['__sentinel']);
 }