Simon Sessingø
115c8e510a
[BUGFIX] Added urldecode to RouterRessource, RouterRoute and
...
RouterController class to ensure that urls with special letters can be
picked up by a custom regular expression (read documentation: match).
2016-03-01 22:50:26 +01:00
Simon Sessingø
4dd0739df9
[BUGFIX] Fixed minor errors with optional parameter when using getRoute().
2016-01-17 04:56:29 +01:00
Simon Sessingø
bb6f56ef8c
[BUGFIX] Fixed some ressources not working after latest update.
...
- Optimisations + cleanup.
2016-01-15 09:37:23 +01:00
Simon Sessingø
14a030294e
[BUGFIX] Minor bugfixes and optimisations
...
- Fixed getRoute sometimes not passing current loaded route.
- Fixed optional parameters in some occasions not working properly.
2016-01-14 16:37:36 +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ø
59956d5fca
[BUGFIX] Optimisations + bugfixes.
2015-12-10 04:12:44 +01:00
Simon Sessingø
3ba2cec8af
[OPTIMISATION] Optimised more foreach loops to improve performance.
2015-12-10 03:41:10 +01:00
Simon Sessingø
c74d83796f
[FEATURE] Added sub-domain routing.
...
- Updated documentation.
2015-12-10 03:31:57 +01:00
Simon Sessingø
2128a24f1c
[FEATURE] Added support for domain regex matching.
...
- Also improved regex matching when using custom regular expressions.
2015-12-10 01:34:35 +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ø
a9e7a33ff8
[...] Stuff from previous commit
2015-11-22 19:47:11 +01:00
Simon Sessingø
5393aa3200
[TASK] RouterRoute now throws exception is required parameter is not
...
filled.
2015-11-22 19:44:09 +01:00
Simon Sessingø
f2ffd83376
[TASK] If parameter is empty set RouterRoute not set the value to null.
2015-11-22 19:39:11 +01:00
Simon Sessingø
c4bff83ac4
[BUGFIX] Fixed route not matching when two params added next to each
...
other.
2015-11-21 21:00:15 +01:00
Simon Sessingø
3533ff8906
[TASK] Added support for letters (before it was only numbers) in default parameter regex.
2015-11-21 20:47:46 +01:00
Simon Sessingø
02de9572fa
[BUGFIX] Fixed parameters on custom regex match.
2015-11-21 20:31:44 +01:00
Simon Sessingø
e5700477e0
[BUGFIX] Fixed optinal parameters not availible when getting route.
...
[BUGFIX] Fixed optinal parameters not availible in url.
2015-11-21 19:43:23 +01:00
Simon Sessingø
3b4954821a
[FEATURE] Optimised route matching, added optional parameters.
...
- Optimised route matching. This should be way more officient and also
seems to fix issues with getting the current route using the getRoute class.
- Added support for optional routes, for example: {id?}.
- Updated documentation to reflect new changes.
2015-11-21 19:31:06 +01:00
Simon Sessingø
b930c06683
[BUGFIX] Fixed support for urls like /path/{param}/path
2015-11-20 07:17:49 +01:00
Simon Sessingø
eb93584d85
[BUGFIX] Fixed routeMatch in RouterEntry not matching routes with multiple
...
arguments.
2015-11-14 22:21:11 +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ø
a2edc1504c
[BUGFIX] Fixed regular expression matching after last release.
2015-10-28 05:04:11 +01:00
Simon Sessingø
c2cf2334e7
[OPTIMISATION] Optimised router handling - router will now use the order provided when loading routes.
2015-10-27 14:01:19 +01:00
Simon Sessingø
5e5a424ee8
[BUGFIX] Bugfixes
...
- getUri() method in Request class no longer appends "/".
- Optimised parseParameters method in RouterRoute class for regex matches.
2015-10-25 15:29:14 +01:00
Simon Sessingø
ac2993f804
[BUGFIX] Bugfixes and optimisations
...
- When no parameter is recieved, router now returns null instead of empty
string.
- json method in Response class now stops response after execution.
- Updated composer.json with correct autoload.
2015-10-25 02:34:25 +02: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ø
626a3b2f6a
[TASK] Changes
...
- Added support for alias on RouterRoute.
- Added typo in resource (renamed class from Ressource to Resource).
- Added optional settings parameter in most of the methods in the
SimpleRouter class.
2015-10-21 00:27:47 +02:00
Simon Sessingø
c1a6c63dc7
[FEATURE/BUGFIX] Improvements
...
- Added match method to match specific regular expression.
- GetRoute now returns provided controller and method if no match is found.
- Bugfixes and other minor improvements.
2015-10-18 23:18:58 +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ø
b6f0f6899a
[TASK] Moved parameter stuff to RouterEntry class.
2015-10-14 20:48:17 +02:00
Simon Sessingø
aec1f5f10c
[FEATURE] Features and optimisations
...
- Added where method to RouterRoute to support custom regular expression matches on routes.
- Moved parameters property to RouterRoute class.
- Added IRouteEntry class.
2015-10-14 13:54:53 +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ø
85470bbbd7
[TASK] Updated
2015-09-21 19:40:14 +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