Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function has($name)
 {
     if (isset($this->setCookies[$name]) && $this->setCookies[$name]->getValue()) {
         return true;
     }
     return parent::has($name);
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function has($name)
 {
     $this->validNameArgument($name);
     return parent::has($name) || isset($this->params['__flash__']) && array_key_exists($name, $this->params['__flash__']);
 }