From bdeb09044ee63e6b801dd7287f3ecdca96bb9872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kocsis=20M=C3=A1t=C3=A9?= Date: Thu, 4 Dec 2014 18:21:50 +0100 Subject: [PATCH] Handlers don't have to return the response --- CHANGELOG.md | 7 +++++-- src/ApiFramework.php | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a514452..0ce5bc9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,13 @@ # Change Log -### 0.4.0 - 2014-12-03 +### 0.4.0 - 2014-12-04 #### Added - Session handling -- Easier to retrieve POST-ed form data +- Form data handling + +#### Changed +- Handlers don't have to return the response ### 0.3.0 - 2014-10-25 diff --git a/src/ApiFramework.php b/src/ApiFramework.php index fbeb192..4bcb078 100644 --- a/src/ApiFramework.php +++ b/src/ApiFramework.php @@ -132,7 +132,8 @@ protected function dispatch() $this->dispatcher->setConfig($this->config); $this->dispatcher->setContainer($this->container); } - $this->response= $this->dispatcher->dispatch($this->request, $this->response); + + $this->dispatcher->dispatch($this->request, $this->response); } protected function respond()