[BUGFIX] Bugfixes and optimisations

- Fixed issue causing nested groups not merging namespace correctly.
- Fixed issue causing longer urls (for example: /route) to have higher priority than (/route/match) in some cases.
This commit is contained in:
Simon Sessingø
2016-04-07 23:16:50 +02:00
parent 27371dfa11
commit 975c27659c
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ class RouterGroup extends RouterEntry {
* @return self
*/
public function addSettings(array $settings = null) {
if(isset($settings['namespace'])) {
if($this->getNamespace() !== null && isset($settings['namespace'])) {
unset($settings['namespace']);
}
if(is_array($settings)) {