mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
[TASK] Readded group match inheritence .
- Settings on routes now have higher priority when merging settings from group.
This commit is contained in:
@@ -192,10 +192,6 @@ abstract class RouterEntry {
|
||||
unset($settings['prefix']);
|
||||
}
|
||||
|
||||
if(isset($settings['regexMatch'])) {
|
||||
unset($settings['regexMatch']);
|
||||
}
|
||||
|
||||
return $settings;
|
||||
}
|
||||
|
||||
@@ -205,7 +201,7 @@ abstract class RouterEntry {
|
||||
*/
|
||||
public function addSettings(array $settings = null) {
|
||||
if(is_array($settings)) {
|
||||
$this->settings = array_merge($this->settings, $settings);
|
||||
$this->settings = array_merge($settings, $this->settings);
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user