mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-12-22 10:25: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;
|
||||
|
||||
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…
Reference in a new issue