Simon Sessingø
dfccd99f2f
Automatically push middlewares if multiple in nested group.
2016-09-28 12:21:23 +02:00
Simon Sessingø
ba736b47a3
- 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.
2016-04-22 15:37:27 +02:00
Simon Sessingø
67a00c6800
- 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.
2016-04-22 12:55:24 +02:00
Simon Sessingø
257875c6f9
[TASK] Load group middleware if prefix matches
...
- Middlewares from groups are now loaded if prefix matches.
- Optimisations.
2016-04-09 09:25:41 +02:00
Simon Sessingø
975c27659c
[BUGFIX] Bugfixes and optimisations
...
- Fixed issue causing nested groups not merging namespace correctly.
- Fixed issue causing longer urls (for example: /route) to have higher priority than (/route/match) in some cases.
2016-04-07 23:16:50 +02:00
Simon Sessingø
6e102711a8
[BUGFIX] Fixed nested groups not merging settings to routes
2016-04-07 01:38:03 +02:00
Simon Sessingø
1bafbab56b
[TASK] Moved RouterException. Readded lost stuff from Request.
2016-03-19 16:27:25 +01:00
Simon Sessingø
db78135d19
[BUGFIX] Only render group if prefix matches.
2016-03-16 19:57:54 +01:00
Simon Sessingø
df2545dd37
[TASK]
...
- Added support for setups where getallheaders function is not availible.
- Made matchDomain method in RouterGroup always return boolean.
2015-12-19 20:15:10 +01:00
Simon Sessingø
ce27196083
[BUGFIX] Bugfixes.
...
- Fixed not validating domain on
- Other small changes.
2015-12-19 18:07:18 +01:00
Simon Sessingø
cbaa0bcaac
[FEATURE] getRoute now support domains.
...
- Optimisations + bugfixes.
2015-12-19 09:21:12 +01:00
Simon Sessingø
0bec524606
[OPTIMISATION] Optimisations + bugfixes.
...
- Fixed references to Pecee framework.
- Fixed variables not being initialised before usage.
- Cleaned up duplicate checks.
- Other small optimisations and bugfixes.
2015-12-11 18:06:52 +01:00
Simon Sessingø
cede827a45
[BUGFIX] Fixed error with RouterGroup.
2015-12-10 21:22:14 +01:00
Simon Sessingø
6c56947792
[FEATURE] Added support for domains array on group.
...
- Group will not render if one or more domain does not match.
2015-12-10 04:42:50 +01:00
Simon Sessingø
c74d83796f
[FEATURE] Added sub-domain routing.
...
- Updated documentation.
2015-12-10 03:31:57 +01:00
Simon Sessingø
8efec07a8b
[FEATURE]
...
- Added support for custom ExceptionHandlers on group level.
- Routes now contain parent group, if any.
- Fixed wrong usage of required parameter.
2015-11-22 20:24:43 +01:00
Simon Sessingø
388c027d04
[BUGFIX] Group will now always be rendered no matter of what prefix is.
2015-11-17 00:55:59 +01:00
Simon Sessingø
3fc81b6492
[TASK] Readded Pecee folder.
2015-11-02 08:08:49 +01:00
Simon Sessingø
b400b86322
[TASK] Removed Pecee folder.
2015-11-02 08:06:49 +01:00
Simon Sessingø
889ceaa37f
[OPTIMISATION] Fixed Group only loading middleware when initialised.
2015-11-01 10:24:05 +01:00
Simon Sessingø
8557741083
[FEATURE] Bugfixes and optimisations
...
- Changed Middleware to interface - as it's easier to inherit and use in
other frameworks/projects.
- RouterController now loads method based on request-method.
- Changed references to old Middleware abstract class.
- Middleware must now be instance of IMiddleware instead of Middleware
class.
2015-11-01 08:23:46 +01:00
Simon Sessingø
bc16388613
[OPTIMISATION] Optimised middleware loading and routes.
2015-10-27 17:35:56 +01:00
Simon Sessingø
58e4eb85bb
[BUGFIX] Fixed method not allowed exception.
...
- Method request type are now checked on all classes in the RouterBase class.
2015-10-21 10:14:21 +02:00
Simon Sessingø
b3b362a9e6
[BUGFIX] Improvements
...
- Fixed errors with getRoute method.
- Added Response and Request classes.
- Added CSRF stuff.
- Cleanup and bugfixes.
2015-10-18 17:36:06 +02:00
Simon Sessingø
2ff88f9ed4
[BUGFIX] Bugfixes
2015-10-07 00:14:59 +02:00
Simon Sessingø
6354c3c766
[TASK] Bugfixes and improvements
...
- Most routes now works along with getRoute() method.
2015-10-06 16:08:42 +02:00
Simon Sessingø
67c3479a3e
[FEATURE]
...
- Added RouterController class.
- Added Router::controller functionality to SimpleRouter class.
- Bugfixes and optimisations.
2015-09-22 13:39:17 +02:00
Simon Sessingø
266ebdf7d7
[TASK] Updated
2015-09-18 20:31:48 +02:00
Simon Sessingø
c9f3cc9329
[TASK]
...
- Renamed to avoid conflicts with other routers.
- Updated documentation.
2015-09-18 20:16:59 +02:00