[BUGFIX] Fixed nested groups not merging settings to routes

This commit is contained in:
Simon Sessingø
2016-04-07 01:38:03 +02:00
parent 4d58fbf7b5
commit 6e102711a8
2 changed files with 15 additions and 1 deletions
+14
View File
@@ -88,4 +88,18 @@ class RouterGroup extends RouterEntry {
return $this->domain;
}
/**
* @param array $settings
* @return self
*/
public function addSettings(array $settings = null) {
if(isset($settings['namespace'])) {
unset($settings['namespace']);
}
if(is_array($settings)) {
$this->settings = array_merge($this->settings, $settings);
}
return $this;
}
}