Skip to content

Commit

Permalink
Pass through string handling when adapter not set.
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyhub authored and joey committed Jan 11, 2019
1 parent 28ebca5 commit e13ef69
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions phalcon/config/adapter/grouped.zep
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ class Grouped extends Config

// Set to default adapter if passed as string
if typeof configName === "string" {
if defaultAdapter === null {
this->_merge(Factory::load(configName));
continue;
}

let configInstance = ["filePath" : configName, "adapter" : defaultAdapter];
} elseif !isset configInstance["adapter"] {
let configInstance["adapter"] = defaultAdapter;
Expand Down

0 comments on commit e13ef69

Please sign in to comment.