Browse Source

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

pull/26/head
Starbeamrainbowlabs 4 years ago
parent
commit
ec8e3363d1
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
  1. 4
      logic/Actions/FetchData.php

4
logic/Actions/FetchData.php

@ -8,10 +8,8 @@ class FetchData { @@ -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);
}

Loading…
Cancel
Save