Simon Sessingø
3dd9dba029
[FEATURE] All headers in Request class now has lowercased keys.
2015-11-01 10:13:00 +01:00
Simon Sessingø
be277f276f
[FEATURE] Added support for patch.
...
- Put now also allow patch request types.
2015-11-01 09:21:47 +01:00
Simon Sessingø
f215eaa9cf
[BUGFIX] Bugfixes and optimisations
...
- Fixed support for multiple middlewares using array.
- Fixed match and parameters-match not not being merged when used on group.
2015-11-01 09:11:17 +01:00
Simon Sessingø
933f2370fe
Merge pull request #24 from skipperbent/development
...
Development
1.2.8
2015-11-01 08:29:19 +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ø
c60d7d81c1
Merge pull request #23 from skipperbent/development
...
[BUGFIX] Optimised getRoute for custom urls.
1.2.7.7
2015-11-01 07:49:21 +01:00
Simon Sessingø
637b998f02
[TASK] Made RouterBase use singleton HttpRequest class.
2015-11-01 07:48:29 +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ø
846c9e6584
[BUGFIX] Optimised getRoute for custom urls.
2015-11-01 07:36:13 +01:00
Simon Sessingø
0df469184c
Merge pull request #22 from skipperbent/development
...
[BUGFIX] Fixed Exceptions due to route null value.
1.2.7.6
2015-10-30 02:28:40 +01:00
Simon Sessingø
649ed28a91
[BUGFIX] Fixed Exceptions due to route null value.
2015-10-30 02:27:44 +01:00
Simon Sessingø
5cb7086e96
Merge pull request #21 from skipperbent/development
...
Development
1.2.7.5
2015-10-28 05:04:45 +01:00
Simon Sessingø
a2edc1504c
[BUGFIX] Fixed regular expression matching after last release.
2015-10-28 05:04:11 +01:00
Simon Sessingø
d31cda8e70
Merge pull request #20 from skipperbent/master
...
Latest master
2015-10-27 17:49:08 +01:00
Simon Sessingø
921f050a31
Update README.md
2015-10-27 17:48:35 +01:00
Simon Sessingø
dcbf59b305
Merge pull request #19 from skipperbent/development
...
Development
1.2.7.4
2015-10-27 17:46:10 +01:00
Simon Sessingø
bc16388613
[OPTIMISATION] Optimised middleware loading and routes.
2015-10-27 17:35:56 +01:00
Simon Sessingø
d3ed3a61b5
[BUGFIX] Middlewares are no longer loaded on invalid routes
2015-10-27 16:42:39 +01:00
Simon Sessingø
969b64650e
Merge pull request #18 from skipperbent/development
...
[OPTIMISATION] Optimised router handling - router will now use the or…
1.2.7.3
2015-10-27 14:02:57 +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ø
af730e6e15
Merge pull request #17 from skipperbent/development
...
Development
1.2.7.2
2015-10-27 11:06:36 +01:00
Simon Sessingø
f5a32cf520
[BUGFIX] Fixed router paths.
2015-10-27 10:35:57 +01:00
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ø
fd28f4549f
Merge pull request #16 from skipperbent/development
...
[BUGFIX] Bugfixes
1.2.7.1
2015-10-25 15:31:15 +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ø
099f04fc10
Merge pull request #15 from skipperbent/development
...
[BUGFIX] Bugfixes and optimisations
1.2.7
2015-10-25 02:35:49 +02: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ø
99da70874e
Merge pull request #14 from skipperbent/development
...
[BUGFIX] Fixed missing "/" in getRoute on some rare occasions.
1.2.6.2
2015-10-24 23:24:52 +02:00
Simon Sessingø
2a66350883
[BUGFIX] Fixed missing "/" in getRoute on some rare occasions.
2015-10-24 23:24:06 +02:00
Simon Sessingø
c95a5291d3
Merge pull request #13 from skipperbent/development
...
[OPTIMISATION] getRoute optimisation
1.2.6.1
2015-10-24 23:21:23 +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ø
cbb4294f58
Merge pull request #12 from skipperbent/development
...
[BUGFIX] Fixed getRoute method in SimpleRouter not being static.
1.2.6
1.2.5
2015-10-23 19:48:08 +02:00
Simon Sessingø
d6bdcbe70c
[BUGFIX] Fixed getRoute method in SimpleRouter not being static.
2015-10-23 19:34:27 +02:00
Simon Sessingø
25f569384f
Merge pull request #11 from skipperbent/development
...
Development
1.2.4
2015-10-22 22:01: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ø
d2de22e5e0
Merge pull request #10 from skipperbent/development
...
Development
1.2.3
2015-10-22 19:34:57 +02:00
Simon Sessingø
252fb16326
Merge branch 'development' of https://github.com/skipperbent/simple-php-router into development
2015-10-22 19:34:32 +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ø
3ccfac9422
Update README.md
2015-10-22 09:57:31 +02:00
Simon Sessingø
8f2d49fb73
Merge pull request #9 from skipperbent/development
...
[BUGFIX] Fixed missing / in beginning of url in getRoute when route d…
1.2.2
2015-10-22 00:18:28 +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ø
5d643d842a
Merge pull request #8 from skipperbent/feature-csrf
...
Custom CSRF middleware support
1.2.1
2015-10-21 19:15:22 +02:00
Simon Sessingø
d6cf5c9b68
[TASK] Updated documentation
2015-10-21 19:14:37 +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ø
f49fa5dca2
Merge pull request #7 from skipperbent/feature-csrf
...
CSRF support
1.2
2015-10-21 18:30:10 +02:00
Simon Sessingø
9d6a3c328f
[TASK] Updated documentation.
2015-10-21 18:30:03 +02:00