[TASK] Load group middleware if prefix matches

- Middlewares from groups are now loaded if prefix matches.
- Optimisations.
This commit is contained in:
Simon Sessingø
2016-04-09 09:25:41 +02:00
parent 9b743e6e57
commit 257875c6f9
3 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ abstract class RouterEntry {
* @return self
*/
public function setPrefix($prefix) {
$this->prefix = '/' . trim($prefix, '/') . '/';
$this->prefix = '/' . ltrim($prefix, '/');
return $this;
}