Simon Sessingø
1843ea0594
[BUGFIX] Fixed routes always matching /show/{id} when other routes are added.
2015-10-27 10:29:40 +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ø
2a66350883
[BUGFIX] Fixed missing "/" in getRoute on some rare occasions.
2015-10-24 23:24:06 +02:00
Simon Sessingø
20fc067765
[FEATURE] If no parameters are specified in the route, getRoute will now
...
add the parameters provided to the method instead.
2015-10-24 23:18:16 +02:00
Simon Sessingø
d6bdcbe70c
[BUGFIX] Fixed getRoute method in SimpleRouter not being static.
2015-10-23 19:34:27 +02:00
Simon Sessingø
b37c73d5dd
[FEATURE] Added more features to Response class.
2015-10-22 21:42:33 +02:00
Simon Sessingø
f5597c24ce
[FEATURE] Added getInput method to return request items.
2015-10-22 21:13:54 +02:00
Simon Sessingø
b8061f2aa7
[TASK] Added getUserAgent and getReferer methods to Request class.
2015-10-22 21:04:52 +02:00
Simon Sessingø
6c7ac2b250
[TASK] Added ip method to Response class.
2015-10-22 21:01:26 +02:00
Simon Sessingø
63dfbb24af
[BUGFIX] Bugfix
...
- Fixed csrf-token cookie not being set on some paths.
- Changed RouterException in BaseCsrfVerifier to TokenMismatchException.
2015-10-22 19:33:20 +02:00
Simon Sessingø
bdb5b2dead
[BUGFIX] Fixed missing / in beginning of url in getRoute when route does not exist.
2015-10-22 00:17:49 +02:00
Simon Sessingø
03cac14e8e
[FEATURE] Support for custom csrf verifier
...
- Added support for custom csrf verifier.
- Updated documentation.
2015-10-21 19:07:45 +02:00
Simon Sessingø
9d6a3c328f
[TASK] Updated documentation.
2015-10-21 18:30:03 +02:00
Simon Sessingø
1ba05b923c
[FEATURE] Csrf token
...
- Added functionality to CsrfToken class.
- Added header support to Request class.
- Added option to set BaseCsrfVerifier class in RouterBase and
SimpleRouter.
2015-10-21 18:12:53 +02:00
Simon Sessingø
c221381c02
[FEATURE] csrf token
...
- Removed request-type prefix when loading methods.
- Optimised csrf token class.
2015-10-21 17:09:31 +02:00
Simon Sessingø
54ae628f4e
[BUGFIX] Fixed middleware not loading and giving "class must be instance of Middleware" exception.
2015-10-21 15:22:09 +02:00
Simon Sessingø
8959a237f9
[FEATURE] Minor features
...
- Added basic auth to Response class.
- Added getPassword() method for basic auth password in Response class.
2015-10-21 15:09:32 +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ø
8db60f85a1
[TASK] Updated documentation.
2015-10-21 00:30:00 +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ø
2524428926
[BUGFIX] Bugfixing
...
- Urls now always returns ending slash when using getRoute().
- Fixed common errors with routing.
- Simplified getRoute method.
2015-10-20 23:54:05 +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ø
93d8c26416
[BUGFIX] Fixed router for controller and ressources not matching /something?
2015-10-14 19:55:05 +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ø
5c81da7b77
[BUGFIX] Bugfixes
...
- Made sure that urls are always presented in the correct order
- Ignored RouterGroup in controllerUrlMap
2015-10-11 11:35:56 +02:00
Simon Sessingø
3c3dcdf8df
[FEATURE] Added getIdentifier method to RouterBase
...
- Fixed getter for getLoadedRoute
2015-10-11 10:43:35 +02:00
Simon Sessingø
a1271f1c89
[BUGFIX] Fixed router not loading show method
2015-10-07 13:26:41 +02:00
Simon Sessingø
2ff88f9ed4
[BUGFIX] Bugfixes
2015-10-07 00:14:59 +02:00
Simon Sessingø
02a874d01c
[TASK] More fixes to the RouterRessource router.
2015-10-06 20:36:24 +02:00
Simon Sessingø
cbe1af0ab9
[FEATURE] Added ressource controller type
2015-10-06 19:46:07 +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ø
1c765476b5
[BUGFIXES] Bugfixes
2015-09-25 00:00:29 +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
Simon Sessingø
05a89c368d
[TASK] Updates
2015-09-18 19:55:17 +02:00
Simon Sessingø
1b6eef6d29
[TASK] Removed unused file
2015-09-18 18:44:47 +02:00
Simon Sessingø
55acac68fa
[TASK] Initial release
2015-09-18 18:38:59 +02:00