X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fsession%2FSessionManagerInterface.php;h=c6990fefe760ad40401662180c20690a7b47aab2;hb=362a962c8db517f435843af45f0747ead6878252;hp=d4e52c7a1692aa1e1feabff58caaf7c30ac564f5;hpb=aff17edd95620bff595dfa88013b422b38b1db2a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/session/SessionManagerInterface.php b/includes/session/SessionManagerInterface.php index d4e52c7a16..c6990fefe7 100644 --- a/includes/session/SessionManagerInterface.php +++ b/includes/session/SessionManagerInterface.php @@ -36,7 +36,8 @@ use WebRequest; */ interface SessionManagerInterface extends LoggerAwareInterface { /** - * Fetch the session for a request + * Fetch the session for a request (or a new empty session if none is + * attached to it) * * @note You probably want to use $request->getSession() instead. It's more * efficient and doesn't break FauxRequests or sessions that were changed @@ -52,6 +53,7 @@ interface SessionManagerInterface extends LoggerAwareInterface { /** * Fetch a session by ID + * * @param string $id * @param bool $create If no session exists for $id, try to create a new one. * May still return null if a session for $id exists but cannot be loaded. @@ -62,7 +64,7 @@ interface SessionManagerInterface extends LoggerAwareInterface { public function getSessionById( $id, $create = false, WebRequest $request = null ); /** - * Fetch a new, empty session + * Create a new, empty session * * The first provider configured that is able to provide an empty session * will be used. @@ -89,9 +91,9 @@ interface SessionManagerInterface extends LoggerAwareInterface { * * The return value is such that someone could theoretically do this: * @code - * foreach ( $provider->getVaryHeaders() as $header => $options ) { - * $outputPage->addVaryHeader( $header, $options ); - * } + * foreach ( $provider->getVaryHeaders() as $header => $options ) { + * $outputPage->addVaryHeader( $header, $options ); + * } * @endcode * * @return array