Issues (6)

config/di/ipLocator.php (1 issue)

1
<?php
2
/**
3
 * IpLocator as a service.
4
 */
5
return [
6
    // Services to add to the container.
7
    "services" => [
8
        "ipLocator" => [
9
            "active" => true,
10
            "shared" => true,
11
            "callback" => function () {
12
                $config = $this->get("configuration");
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable $this seems to be never defined.
Loading history...
13
14
                $ipstackConfig = $config->load("weather");
15
16
                $ipLocator = new EVB\Weather\IpLocator(
17
                    $ipstackConfig["items"][0]["config"]["ipstackApiKey"],
18
                    $this->get("curlWrapper")
19
                );
20
21
                return $ipLocator;
22
            }
23
        ]
24
    ]
25
];
26