Simon Sessingø
3da7c4b446
- Fixed getIp in HttpRequest class not picking up local-ip.
...
- Made setdefaultNamespace method chainable.
- Simplified SimpleRouter class.
2016-04-11 22:37:15 +02:00
Simon Sessingø
b34738a51a
[OPTIMISATION] Optimised CSRF-token management.
2016-04-09 05:51:27 +02:00
Simon Sessingø
1bafbab56b
[TASK] Moved RouterException. Readded lost stuff from Request.
2016-03-19 16:27:25 +01:00
Simon Sessingø
b29f2ce37d
[FEATURE] Added custom boot managers
2016-03-19 16:14:36 +01:00
Simon Sessingø
5483ffe458
[TASK] Readded group match inheritence .
...
- Settings on routes now have higher priority when merging settings from
group.
2016-03-18 17:43:57 +01:00
Simon Sessingø
c4fcf750d4
Added support for x-forwarded-proto http header
2016-03-14 01:09:35 +01:00
Simon Sessingø
a92b6008fa
[TASK] Added http code to redirect method.
2016-03-14 01:00:19 +01:00
Simon Sessingø
aeacda1812
[FEATURE] Added option to change route and get information about current
...
route through the Request object.
- Updated documentation to relfect new changes.
2016-01-15 11:06:13 +01:00
Simon Sessingø
849749969d
[OPTIMISATION] Made getAllHeaders protected.
2015-12-19 20:20:42 +01:00
Simon Sessingø
c37a7159d2
[OPTIMISATION] No reason to str_replace twice.
2015-12-19 20:18:35 +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ø
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ø
1d8e7c2caf
[TASK] Optimised cache method in Response class.
2015-12-05 03:53:50 +01:00
Simon Sessingø
19dc295199
[FEATURE] Added getIsSecure method to Request class.
2015-11-18 19:19:15 +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ø
3dd9dba029
[FEATURE] All headers in Request class now has lowercased keys.
2015-11-01 10:13:00 +01:00
Simon Sessingø
b3f8910cab
[TASK] Removed Middleware class.
2015-11-01 08:28:28 +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ø
aca7d3d503
[FEATURE] Added magic method getters and setters, and made request a
...
singleton applied configuration can be availible from everywhere.
2015-11-01 07:44:13 +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ø
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ø
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ø
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ø
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ø
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