Ejemplo n.º 1
0
 /**
  * @param Cookie $cookie
  * @return mixed
  */
 public function addCookie(Cookie $cookie)
 {
     $kleinCookie = new ResponseCookie($cookie->getName(), $cookie->getValue(), $cookie->getExpiration(), $cookie->getPath(), $cookie->getDomain(), $cookie->isSecure(), $cookie->isHttpOnly());
     $this->klein->response()->cookies()->set($cookie->getName(), $kleinCookie);
 }