public function write(Response $response, $value)
    {
        $cookie = $this->createCookieWithValue($value);
        $response->headers->setCookie($cookie);
        return $cookie;
    }
public function write(Response $response, $value)
    {
        $cookie = $this->createCookieWithValue($value);
        $response->headers->setCookie($cookie);
        return $cookie;
    }
public function write ( Response $ response , $ value ) { $ cookie = $ this -> createCookieWithValue ( $ value ) ; $ response -> headers -> setCookie ( $ cookie ) ; return $ cookie ; }
Write a new value for the current cookie to a given Response.

@param string $value
@return Cookie
Write a new value for the current cookie to a given Response .