1 | <?php |
||
2 | /** |
||
3 | * Config file for api. |
||
4 | */ |
||
5 | return [ |
||
6 | "services" => [ |
||
7 | "darksky" => [ |
||
8 | "shared" => true, |
||
9 | "callback" => function () { |
||
10 | // Load the configuration files |
||
11 | $cfg = $this->get("configuration"); |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
![]() |
|||
12 | $config = $cfg->load("darksky.php"); |
||
13 | |||
14 | return $config; |
||
15 | } |
||
16 | ], |
||
17 | "mapquest" => [ |
||
18 | "shared" => true, |
||
19 | "callback" => function () { |
||
20 | // Load the configuration files |
||
21 | $cfg = $this->get("configuration"); |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
|
|||
22 | $config = $cfg->load("mapquest.php"); |
||
23 | |||
24 | return $config; |
||
25 | } |
||
26 | ], |
||
27 | "ipstack" => [ |
||
28 | "shared" => true, |
||
29 | "callback" => function () { |
||
30 | // Load the configuration files |
||
31 | $cfg = $this->get("configuration"); |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
|
|||
32 | $config = $cfg->load("ipstack.php"); |
||
33 | |||
34 | return $config; |
||
35 | } |
||
36 | ] |
||
37 | ] |
||
38 | ]; |
||
39 |