Commit Graph

29 Commits

Author SHA1 Message Date
sessingo
b7c1b52a57 Updated phpstan 2023-02-12 23:39:49 +01:00
sessingo
941149d8d7 Fixed deprication warnings 2023-02-11 17:31:00 +01:00
sessingo
1764b67112 Updated composer.json 2023-02-11 17:25:54 +01:00
sessingo
f0a4b6e46f Updated composer 2023-02-09 03:01:17 +01:00
Simon Sessingø
22606dfc12 Updates 2021-06-09 09:13:11 +02:00
Simon Sessingø
5cd6cab801 Development
- Fixed issue causing default-namespace to add duplicate namespace when using type-hints (issue: #561).
- Fixed phpstan issues.
- Tests: Fixed TestRouter not resetting namespace upon reset.
- Tests: Added NSController (namespace controller) class.
- Tests: added test for class hint + default namespace case.
- Composer: added phpstan support + configuration.
- Composer: updated phpunit version.
2021-06-09 08:54:24 +02:00
DeveloperMarius
cfc8b5db43 Test PHP Version 7.1 with PHPUnit 7 2021-03-23 15:44:43 +01:00
DeveloperMarius
619a8d00b4 v4-development sync 2021-03-23 15:42:44 +01:00
Simon Sessingø
42633ec453 php-unit updates 2021-03-23 15:38:10 +01:00
Simon Sessingø
57936b7857 Reverted back php-unit version 2021-03-23 15:26:57 +01:00
Simon Sessingø
db63aff668 Updated php-unit to version 9 2021-03-23 15:20:05 +01:00
DeveloperMarius
9f0373938d fix composer test command 2021-03-23 13:35:57 +01:00
DeveloperMarius
c408f79d8a changed to PHP >= 3 & run test via composer test 2021-03-23 13:34:55 +01:00
DeveloperMarius
87985841de complete change of tests 2021-03-23 12:48:49 +01:00
DeveloperMarius
554d562e56 Seem to get no error local, test on actions 2021-03-23 12:04:10 +01:00
Marius Karstedt
aa8211a273 added tests to composer 2021-03-23 03:23:18 +01:00
Simon Sessingø
a44a93d705 [!!!][FEATURE] Removed php-di as suggested by #477
NOTE: Custom class-loader should be used to create custom integrations with frameworks like php-di. See documentation for more information.

- Removed all references to php-cli from composer + code.
- Added ClassLoader php-unit tests.
2021-03-23 00:46:17 +01:00
Simon Sessingø
0ac7fd559a Optimizations
- Settings parameter in group method are no longer optional.
- Updated README to contain PHP JSON-extension under requirements.
- Updated composer.json to include php json extension.
2018-08-31 01:40:21 +02:00
Simon Sessingø
af2ac6031d Development
- Added dependency injection support.
- Added php-di composer dependency.
- Added `ClassLoader` class.
- Added `IClassLoader` interface.
- Added unit-tests for dependency injection.
- Updated documentation to reflect new features.
2018-03-29 21:16:02 +02:00
Simon Sessingø
f23d569757 Added support for PHP7 2018-03-20 03:38:55 +01:00
Simon Sessingo
8d87aab35b Optimisations 2018-02-05 05:27:47 +01:00
Simon Sessingø
be20fe4dd1 Updated composer.json tags. 2017-07-08 12:20:49 +02:00
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