anonymous()
last analyzed

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 6
nc 1
nop 0
dl 0
loc 8
c 0
b 0
f 0
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
The variable $this seems to be never defined.
Loading history...
17
                $config = $cfg->load("access.php");
18
                $IpModel->setKeys($config['config']);
19
                return $IpModel;
20
            }
21
        ],
22
    ],
23
];
24