Skip to content

Commit

Permalink
Add deprecation to Client\Request::cookie()
Browse files Browse the repository at this point in the history
This method isn't necessary anymore. The new CookieCollections are used
by the Client making this method un-necessary.
  • Loading branch information
markstory committed Mar 30, 2017
1 parent 603f2ac commit b05ffe4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Http/Client/Request.php
Expand Up @@ -188,6 +188,9 @@ protected function addHeaders($headers)
* @param string $name The name of the cookie to get/set
* @param string|null $value Either the value or null when getting values.
* @return mixed Either $this or the cookie value.
* @deprected 3.5.0 No longer used. CookieCollections now add `Cookie` header to the request
* before sending. Use Cake\Http\Cookie\CookieCollection::addToRequest() to make adding cookies
* to a request easier.
*/
public function cookie($name, $value = null)
{
Expand Down

0 comments on commit b05ffe4

Please sign in to comment.