From ec8e3363d11d6891a0be8f08f2e250ca031e4310 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 14 Jan 2019 21:33:30 +0000 Subject: [PATCH] Don't access the database connection directly in the action - that's bad! --- logic/Actions/FetchData.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/logic/Actions/FetchData.php b/logic/Actions/FetchData.php index f6e008e..a1a48dd 100644 --- a/logic/Actions/FetchData.php +++ b/logic/Actions/FetchData.php @@ -8,10 +8,8 @@ class FetchData { private $validator; public function __construct( - \SBRL\TomlConfig $in_settings, - \AirQuality\Database $in_database) { + \SBRL\TomlConfig $in_settings) { $this->settings = $in_settings; - $this->database = $in_database; $this->validator = new \AirQuality\Validator($_GET); }