|
|
@@ -515,23 +515,6 @@ class ServerRequest implements ArrayAccess, ServerRequestInterface
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Update the request with a new session instance.
|
|
|
- *
|
|
|
- * Returns an updated request object. This method returns
|
|
|
- * a *new* request object and does not mutate the request in-place.
|
|
|
- *
|
|
|
- * @param \Cake\Network\Session $session the session object to use
|
|
|
- * @return static
|
|
|
- */
|
|
|
- public function withSession(Session $session)
|
|
|
- {
|
|
|
- $new = clone $this;
|
|
|
- $new->session = $session;
|
|
|
-
|
|
|
- return $new;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
* Returns the instance of the Session object for this request
|
|
|
*
|
|
|
* @return \Cake\Network\Session
|
|
|
@@ -547,7 +530,7 @@ class ServerRequest implements ArrayAccess, ServerRequestInterface
|
|
|
* If a session object is passed as first argument it will be set as
|
|
|
* the session to use for this request
|
|
|
*
|
|
|
- * @deprecated 3.5.0 Use getSession()/withSession() instead.
|
|
|
+ * @deprecated 3.5.0 Use getSession() instead. The setter part will be removed.
|
|
|
* @param \Cake\Network\Session|null $session the session object to use
|
|
|
* @return \Cake\Network\Session
|
|
|
*/
|