1 | <?php |
||
2 | /** |
||
3 | * Configuration file for DI container. |
||
4 | */ |
||
5 | return [ |
||
6 | // Services to add to the container. |
||
7 | "services" => [ |
||
8 | "ip" => [ |
||
9 | "shared" => true, |
||
10 | "callback" => function () { |
||
11 | $cfg = $this->configuration->load("ip.php"); |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
![]() |
|||
12 | $apiKey = $cfg["config"]["apiKey"]; |
||
13 | |||
14 | $ip = new \Faxity\DI\IP($apiKey); |
||
15 | $ip->setDI($this); |
||
16 | |||
17 | return $ip; |
||
18 | }, |
||
19 | ], |
||
20 | ], |
||
21 | ]; |
||
22 |