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