Neos\Flow\Http\Headers::getCookie PHP Méthode

getCookie() public méthode

Returns a cookie specified by the given name
public getCookie ( string $name ) : Cookie
$name string Name of the cookie
Résultat Cookie The cookie or NULL if no such cookie exists
    public function getCookie($name)
    {
        return isset($this->cookies[$name]) ? $this->cookies[$name] : null;
    }

Usage Example

 /**
  * Returns a cookie specified by the given name
  *
  * This is a shortcut for $message->getHeaders()->getCookie($name);
  *
  * @param string $name Name of the cookie
  * @return Cookie The cookie or NULL if no such cookie exists
  * @api
  */
 public function getCookie($name)
 {
     return $this->headers->getCookie($name);
 }
All Usage Examples Of Neos\Flow\Http\Headers::getCookie