1 | <?php |
||
9 | trait ConfigAwareTrait |
||
10 | { |
||
11 | /** |
||
12 | * @var Config|Config|null |
||
13 | */ |
||
14 | protected $config = null; |
||
15 | |||
16 | public function registerContainerConfig() |
||
20 | |||
21 | /** |
||
22 | * Get the container. |
||
23 | * |
||
24 | * @return Config |
||
25 | */ |
||
26 | public function getConfig() |
||
34 | |||
35 | /** |
||
36 | * Set a container. |
||
37 | * |
||
38 | * @param Config $config |
||
39 | * @return $this |
||
40 | */ |
||
41 | public function setConfig($config) |
||
47 | |||
48 | public function initConfig() |
||
57 | |||
58 | /** |
||
59 | * @return Config |
||
60 | */ |
||
61 | public function newConfig() |
||
65 | } |
||
66 |