|
|
@@ -1925,7 +1925,7 @@ class Response implements ResponseInterface
|
|
|
* @param array|null $options Either null to get all cookies, string for a specific cookie
|
|
|
* or array to set cookie.
|
|
|
* @return mixed
|
|
|
- * @deprecated 3.4.0 Use getCookie() and withCookie() instead.
|
|
|
+ * @deprecated 3.4.0 Use getCookie(), getCookies() and withCookie() instead.
|
|
|
*/
|
|
|
public function cookie($options = null)
|
|
|
{
|
|
|
@@ -2023,6 +2023,18 @@ class Response implements ResponseInterface
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * Get all cookies in the response.
|
|
|
+ *
|
|
|
+ * Returns an associative array of cookie name => cookie data.
|
|
|
+ *
|
|
|
+ * @return array
|
|
|
+ */
|
|
|
+ public function getCookies()
|
|
|
+ {
|
|
|
+ return $this->_cookies;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* Setup access for origin and methods on cross origin requests
|
|
|
*
|
|
|
* This method allow multiple ways to setup the domains, see the examples
|