mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-10 21:42:17 +00:00
- 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:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user