1 | <?php |
||
2 | return [ |
||
3 | "services" => [ |
||
4 | "ipstack" => [ |
||
5 | "shared" => true, |
||
6 | "callback" => function () { |
||
7 | $getConfig = $this->get("configuration"); |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
![]() |
|||
8 | $config = $getConfig->load("weather_api_keys.php"); |
||
9 | $apiKey = $config["config"]["ipstack"]; |
||
10 | $ipstack = new \Anax\DI\Ipstack($apiKey); |
||
11 | $ipstack->setDi($this); |
||
12 | return $ipstack; |
||
13 | }, |
||
14 | ], |
||
15 | ], |
||
16 | ]; |
||
17 |