1 | <?php |
||
19 | class Config |
||
20 | { |
||
21 | /** |
||
22 | * Config file name. |
||
23 | */ |
||
24 | |||
25 | private static $configFileNames = [ |
||
26 | 'phpbattlerite', |
||
27 | 'apikey', |
||
28 | ]; |
||
29 | |||
30 | /** |
||
31 | * @var \Illuminate\Config\Repository |
||
32 | */ |
||
33 | private $config; |
||
34 | 4 | ||
35 | /** |
||
36 | 4 | * Config constructor. |
|
37 | * @param string $pathEnvFile |
||
38 | 4 | * @throws ConfigFileNotFoundException |
|
39 | */ |
||
40 | 4 | public function __construct($pathEnvFile = __DIR__) |
|
52 | 4 | ||
53 | /** |
||
54 | * return the correct config directory path. |
||
55 | 4 | * |
|
56 | * @return mixed|string |
||
57 | */ |
||
58 | private function configurationPath() |
||
71 | |||
72 | /** |
||
73 | * @param $key |
||
74 | * |
||
75 | * @return mixed |
||
76 | */ |
||
77 | public function get($key) |
||
81 | |||
82 | /** |
||
83 | * @param $pathFile |
||
84 | */ |
||
85 | private function configurationEnvFile($pathFile) |
||
90 | |||
91 | /** |
||
92 | * @param $configPath |
||
93 | * @throws ConfigFileNotFoundException |
||
94 | */ |
||
95 | public function setConfig($configPath, $configFileName) |
||
105 | } |
||
106 |