Commit Graph

7 Commits

Author SHA1 Message Date
Simon Sessingø
8c5d8c2dc9 Development
- Fixed: namespace being prepended on `RouterController` routes with absolute namespaces.
- Fixed: match domain on `RouteController` and `RouteResource`.
- Fixed: strict url-matching on `RouteController`. Fix should provide better url-matching.
- Fixed: `RouterResource` always matching first url when having simular urls (ex: `/funny-cat` and `/funny-dog`).
- Added `loadRoutes` method to `Router` class so routes now can be loaded without routing the request (useful when running in Cli etc).
- Removed `getInstance` from `Router` class. Please use `SimpleRouter::router()` for singleton usage instead.
- Added `getRemoteAddr` alias-method for `getIp` in `Request` class.
- Added `getValue` to `IInputItem` interface.
- Other minor optimizations.
- Updated documentation with note on absolute/relative namespaces.
2017-02-26 09:18:35 +01:00
Simon Sessingø
9b743e6e57 [FEATURE] Added requirements (issue: #80) 2016-04-09 08:05:18 +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ø
d4f0046283 [TASK] Updated composer.json, added .gitignore 2015-09-18 19:41:55 +02:00
Simon Sessingø
291f7117d6 [TASK] Updated composer.json 2015-09-18 19:20:05 +02:00
Simon Sessingø
a0e05782e2 [TASK] Updated composer.json 2015-09-18 19:08:44 +02:00
Simon Sessingø
f528ec05d2 [TASK] Added composer.json 2015-09-18 18:51:47 +02:00