Don't access the database connection directly in the action - that's bad!

This commit is contained in:
Starbeamrainbowlabs 2019-01-14 21:33:30 +00:00
parent 4ea28cdbff
commit ec8e3363d1
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 1 additions and 3 deletions

View File

@ -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);
}