H4MSK1 /
anax-weather
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Configuration file for DI container. |
||
| 4 | */ |
||
| 5 | return [ |
||
| 6 | |||
| 7 | // Services to add to the container. |
||
| 8 | "services" => [ |
||
| 9 | "curl" => [ |
||
| 10 | "shared" => true, |
||
| 11 | "callback" => function () { |
||
| 12 | $config = $this->get("configuration")->load("api.php"); |
||
|
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
Loading history...
|
|||
| 13 | $apiServices = $config["config"]["services"]; |
||
| 14 | |||
| 15 | return new \H4MSK1\Curl\Api($apiServices, $this); |
||
| 16 | } |
||
| 17 | ], |
||
| 18 | ], |
||
| 19 | ]; |
||
| 20 |