Ejemplo n.º 1
0
 /**
  * Sets the session or session value
  * @param string|\Nimbles\Http\Sesison $key
  * @param scalar $value
  * @return \Nimbles\Http\Response
  */
 public function setSession($key, $value = null)
 {
     if ($key instanceof Session) {
         $this->_session = $key;
         return $this;
     }
     $this->_session->write($key, $value);
     return $this;
 }