- Removed support from middlewares on each load - this should be implemented in custom Router instead.

- Updated documentation to reflect how to implement Middlewares loaded on each route.
This commit is contained in:
Simon Sessingø
2016-04-22 15:37:27 +02:00
parent 6ab1200fd5
commit ba736b47a3
3 changed files with 61 additions and 39 deletions
+1 -10
View File
@@ -92,20 +92,11 @@ class RouterGroup extends RouterEntry {
if($this->getNamespace() !== null && isset($settings['namespace'])) {
unset($settings['namespace']);
}
if(is_array($settings)) {
$this->settings = array_merge($this->settings, $settings);
}
return $this;
}
public function getMergeableSettings() {
$settings = parent::getMergeableSettings();
if(isset($settings['middleware'])) {
unset($settings['middleware']);
}
return $settings;
}
}