2) Refactor App->config[] into Core\PConfig
This commit is contained in:
parent
f40c57fc20
commit
5c50684b50
|
@ -162,7 +162,7 @@ class Config extends BaseObject
|
||||||
* @param array $config
|
* @param array $config
|
||||||
* @param bool $overwrite Force value overwrite if the config key already exists
|
* @param bool $overwrite Force value overwrite if the config key already exists
|
||||||
*/
|
*/
|
||||||
public function loadConfigArray(array $config, $overwrite = false)
|
public static function loadConfigArray(array $config, $overwrite = false)
|
||||||
{
|
{
|
||||||
foreach ($config as $category => $values) {
|
foreach ($config as $category => $values) {
|
||||||
foreach ($values as $key => $value) {
|
foreach ($values as $key => $value) {
|
||||||
|
|
Loading…
Reference in a new issue