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