diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-08-28 13:02:29 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-08-28 13:02:29 +0200 |
commit | 3f12ec95f0c220dfcfa9d495f981fee6ded4b002 (patch) | |
tree | b324750d9c482f8cb91fa800a4fa84e77320f93c /lib/private/AppFramework/Middleware | |
parent | caf32d25f8635c86ed9c230dc495a4cf6afbfe3a (diff) | |
download | nextcloud-server-3f12ec95f0c220dfcfa9d495f981fee6ded4b002.tar.gz nextcloud-server-3f12ec95f0c220dfcfa9d495f981fee6ded4b002.zip |
SessionMiddleware: declare session property
* Remove request since we don't useit
* Update tests as well
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/AppFramework/Middleware')
-rw-r--r-- | lib/private/AppFramework/Middleware/SessionMiddleware.php | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/lib/private/AppFramework/Middleware/SessionMiddleware.php b/lib/private/AppFramework/Middleware/SessionMiddleware.php index 7b52cc1e319..3cb60874b38 100644 --- a/lib/private/AppFramework/Middleware/SessionMiddleware.php +++ b/lib/private/AppFramework/Middleware/SessionMiddleware.php @@ -34,25 +34,14 @@ use OCP\ISession; class SessionMiddleware extends Middleware { - /** - * @var IRequest - */ - private $request; - - /** - * @var ControllerMethodReflector - */ + /** @var ControllerMethodReflector */ private $reflector; - /** - * @param IRequest $request - * @param ControllerMethodReflector $reflector - */ - public function __construct(IRequest $request, - ControllerMethodReflector $reflector, - ISession $session -) { - $this->request = $request; + /** @var ISession */ + private $session; + + public function __construct(ControllerMethodReflector $reflector, + ISession $session) { $this->reflector = $reflector; $this->session = $session; } |