1 | <?php |
||
14 | class ConsulEnvManager |
||
15 | { |
||
16 | /** |
||
17 | * @var KV |
||
18 | */ |
||
19 | protected $kv; |
||
20 | |||
21 | /** |
||
22 | * @var bool |
||
23 | */ |
||
24 | protected $overwriteEvenIfDefined = false; |
||
25 | |||
26 | /** |
||
27 | * ConsulEnvManager constructor. |
||
28 | * |
||
29 | * @param KV $kv |
||
30 | * @param bool $overwriteEvenIfDefined |
||
31 | */ |
||
32 | 7 | public function __construct(KV $kv, bool $overwriteEvenIfDefined = false) |
|
37 | |||
38 | /** |
||
39 | * Get environment variables from Consul. |
||
40 | * |
||
41 | * @param array $mappings |
||
42 | */ |
||
43 | 3 | public function getEnvVarsFromConsul(array $mappings) |
|
55 | } |
||
56 |