1 | <?php |
||
2 | /** |
||
3 | * Created by PhpStorm. |
||
4 | * User: jonat |
||
5 | * Date: 2018-11-27 |
||
6 | * Time: 15:00 |
||
7 | */ |
||
8 | |||
9 | /**< |
||
10 | * Configuration file for DI container. |
||
11 | */ |
||
12 | return [ |
||
13 | |||
14 | // Services to add to the container. |
||
15 | "services" => [ |
||
16 | "keys" => [ |
||
17 | "shared" => true, |
||
18 | "callback" => function () { |
||
19 | // Load the configuration files |
||
20 | $cfg = $this->get("configuration"); |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
![]() |
|||
21 | $config = $cfg->load("keys.php"); |
||
22 | |||
23 | return (object) $config["config"]; |
||
24 | } |
||
25 | ], |
||
26 | ], |
||
27 | ]; |
||
28 |