Issues (11)

config/di/darksky.php (1 issue)

1
<?php
2
return [
3
    "services" => [
4
        "darksky" => [
5
            "shared" => true,
6
            "callback" => function () {
7
                $getConfig = $this->get("configuration");
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable $this seems to be never defined.
Loading history...
8
                $config = $getConfig->load("weather_api_keys.php");
9
                $apiKey = $config["config"]["darksky"];
10
                $darksky = new \Anax\DI\Darksky($apiKey);
11
                $darksky->setDi($this);
12
                return $darksky;
13
            },
14
        ],
15
    ],
16
];
17