From 2d6505b07a08e5581cac3c004a7319075628c740 Mon Sep 17 00:00:00 2001 From: cravler Date: Fri, 14 Feb 2014 10:58:21 +0200 Subject: [PATCH 1/2] Session: method "cull" fix --- src/DNode/Session.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/DNode/Session.php b/src/DNode/Session.php index e8ed636..665ca25 100644 --- a/src/DNode/Session.php +++ b/src/DNode/Session.php @@ -77,6 +77,14 @@ public function handle($req) { $session = $this; + if ($req->method === 'cull') { + foreach ($req->arguments as $id) { + unset($this->callbacks[$req->method]); + } + + return; + } + // Register callbacks from request $args = $this->unscrub($req); From 5c3def58f951192b79f0ab3c70898cca757c0178 Mon Sep 17 00:00:00 2001 From: cravler Date: Tue, 18 Feb 2014 10:20:06 +0200 Subject: [PATCH 2/2] typo fix --- src/DNode/Session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DNode/Session.php b/src/DNode/Session.php index 665ca25..7fc7f40 100644 --- a/src/DNode/Session.php +++ b/src/DNode/Session.php @@ -79,7 +79,7 @@ public function handle($req) if ($req->method === 'cull') { foreach ($req->arguments as $id) { - unset($this->callbacks[$req->method]); + unset($this->callbacks[$id]); } return;