@@ 148-156 (lines=9) @@ | ||
145 | /** |
|
146 | * |
|
147 | */ |
|
148 | protected function loadCountries() |
|
149 | { |
|
150 | $countries = Yaml::parse(file_get_contents(HCSF_BASEDIR.'config/countries.yml')); |
|
151 | if (is_file(PATH_BASEDIR.'config/countries.yml')) { |
|
152 | $countries = array_merge($countries, Yaml::parse(file_get_contents(PATH_BASEDIR.'config/countries.yml'))); |
|
153 | } |
|
154 | ||
155 | $this->countries = $countries; |
|
156 | } |
|
157 | ||
158 | /** |
|
159 | * @param string|false $setting |
|
@@ 174-182 (lines=9) @@ | ||
171 | /** |
|
172 | * |
|
173 | */ |
|
174 | protected function loadSecrets() |
|
175 | { |
|
176 | $secrets = Yaml::parse(file_get_contents(HCSF_BASEDIR.'config/secrets.yml')); |
|
177 | if (is_file(PATH_BASEDIR.'config/secrets.yml')) { |
|
178 | $secrets = array_merge($secrets, Yaml::parse(file_get_contents(PATH_BASEDIR.'config/secrets.yml'))); |
|
179 | } |
|
180 | ||
181 | $this->secrets = $secrets; |
|
182 | } |
|
183 | ||
184 | /** |
|
185 | * @param string|false $setting |
|
@@ 200-208 (lines=9) @@ | ||
197 | /** |
|
198 | * |
|
199 | */ |
|
200 | protected function loadCustomer() |
|
201 | { |
|
202 | $customer = Yaml::parse(file_get_contents(HCSF_BASEDIR.'config/customer.yml')); |
|
203 | if (is_file(PATH_BASEDIR.'/config/customer.yml')) { |
|
204 | $customer = array_merge($customer, Yaml::parse(file_get_contents(PATH_BASEDIR.'config/customer.yml'))); |
|
205 | } |
|
206 | ||
207 | $this->customer = $customer; |
|
208 | } |
|
209 | ||
210 | /** |
|
211 | * @param string|bool $setting |