From a728279bf503b02098f50663c59531123447febd Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sat, 4 Oct 2014 13:34:08 +0200 Subject: [PATCH] Removed reliance on global from Dispatcher --- public_html/api-dispatch.php | 3 --- src/Bootstrap.php | 14 ++++++++++++-- src/Dispatcher.php | 3 +-- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/public_html/api-dispatch.php b/public_html/api-dispatch.php index 4bc5a20b..85c5fe93 100644 --- a/public_html/api-dispatch.php +++ b/public_html/api-dispatch.php @@ -1,9 +1,6 @@ run($httpHelper->getRequestMethod(), $_GET['q']); diff --git a/src/Bootstrap.php b/src/Bootstrap.php index 9e83ffc3..71daaa4d 100644 --- a/src/Bootstrap.php +++ b/src/Bootstrap.php @@ -1,14 +1,24 @@ databaseConnection->getPDO()->getQueryCount(); $this->httpHelper->setResponseCode($code);