mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-22 06:23:01 +00:00
Don't access the database connection directly in the action - that's bad!
This commit is contained in:
parent
4ea28cdbff
commit
ec8e3363d1
1 changed files with 1 additions and 3 deletions
|
@ -8,10 +8,8 @@ class FetchData {
|
||||||
private $validator;
|
private $validator;
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
\SBRL\TomlConfig $in_settings,
|
\SBRL\TomlConfig $in_settings) {
|
||||||
\AirQuality\Database $in_database) {
|
|
||||||
$this->settings = $in_settings;
|
$this->settings = $in_settings;
|
||||||
$this->database = $in_database;
|
|
||||||
$this->validator = new \AirQuality\Validator($_GET);
|
$this->validator = new \AirQuality\Validator($_GET);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue