Issues (4)

config/di/curl.php (1 issue)

1
<?php
2
/**
3
 * Configuration file for DI container.
4
 */
5
return [
6
7
    // Services to add to the container.
8
    "services" => [
9
        "curl" => [
10
            "shared" => true,
11
            "callback" => function () {
12
                $cache = $this->get("cache");
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable $this seems to be never defined.
Loading history...
13
                $curl = new \Anax\Curl\Curl($cache);
14
15
                return $curl;
16
            }
17
        ],
18
    ],
19
];
20