- Optimized Input class.

- Input class now returns array instead of InputItem instance when object is of type array.
- Optimized key behavior in Input class.
- Optimized arrayToParams method in RouterBase class.
- Added getMergableSettings method to RouterGroup to avoid middleware merge; as they will already be loaded.
This commit is contained in:
Simon Sessingø
2016-04-22 12:55:24 +02:00
parent 1420203149
commit 67a00c6800
3 changed files with 28 additions and 21 deletions
+10
View File
@@ -98,4 +98,14 @@ class RouterGroup extends RouterEntry {
return $this;
}
public function getMergeableSettings() {
$settings = parent::getMergeableSettings();
if(isset($settings['middleware'])) {
unset($settings['middleware']);
}
return $settings;
}
}