Simon Sessingø
be2d45f0ad
Updated documentation
2021-03-29 22:24:02 +02:00
Simon Sessingø
dd9a6eab7d
[FEATURE] Added class + method loading to IClassLoader.
2021-03-29 22:15:55 +02:00
Simon Sessingø
5621ffc724
Updated documentation
2021-03-29 22:04:46 +02:00
Simon Sessingø
438193ef59
Added deprecated warning for RoutePartialGroup.
2021-03-29 21:59:30 +02:00
Simon Sessingø
adc879bb13
[BUGFIX] Fixed InputHandler::find and InputHandler::value failing when using array methods.
2021-03-29 18:45:49 +02:00
Simon Sessingø
06ee78a48f
Updated example for group parameters
2021-03-29 17:41:18 +02:00
Simon Sessingø
4b992f0a2f
Merge pull request #527 from skipperbent/v4-feature-group-parameters
...
[FEATURE] Added support for parameters in group prefix.
2021-03-29 17:14:51 +02:00
Simon Sessingø
c423172c23
Added deep parameters pass unit-test
2021-03-29 17:10:12 +02:00
Simon Sessingø
d6d83ac5bd
Parameters are now correctly passed on to sub-routes
2021-03-29 17:05:45 +02:00
Simon Sessingø
b05bbccc28
[FEATURE] Added support for parameters in group prefix.
2021-03-29 16:56:37 +02:00
Simon Sessingø
d6bc713e5b
[CLEANUP] Added qualifier import.
2021-03-29 15:40:50 +02:00
Simon Sessingø
8eba5ab3d5
[FEATURE] php8 compatibility.
...
- Fixed possible error causing parameters not to be set properly when using partialGroup.
- Removed unused import reference.
- Added unit-tests.
2021-03-29 15:11:58 +02:00
Simon Sessingø
5b99e98a24
Merge pull request #524 from skipperbent/v4-cleanup
...
[CLEANUP] Cleaned up code
2021-03-29 00:07:12 +02:00
Simon Sessingø
c916a1dd2e
[CLEANUP] Cleaned up code
...
- Change variable $values to $settings in Route::setSettings method.
- Added return types to methods.
- Added type to method variables.
- Change ClassNotFoundException so required parameters are first.
2021-03-29 00:00:01 +02:00
Simon Sessingø
9ed2d2b8d1
Updated Request::isPostBack to return true if request-method could contain data in body.
2021-03-28 23:32:33 +02:00
Simon Sessingø
caf30cb056
Merge pull request #523 from skipperbent/v4-isPostBack
...
[FEATURE] Added Request::isPostBack helper method
2021-03-28 04:25:54 +02:00
Simon Sessingø
6ccd06911e
Fixed possible bug causing InputHandler not to get the correct request-method + simplified Request class.
2021-03-28 04:24:33 +02:00
Simon Sessingø
e5eb966780
Added Request::isPostBack helper method
2021-03-28 04:05:09 +02:00
Simon Sessingø
9e19cbfb71
Merge pull request #521 from skipperbent/v4-fix-group-domain
...
[BUGFIX] Fixed group not matching domain with no parameters (issue: #468 )
2021-03-26 01:35:37 +01:00
Simon Sessingø
073479f9dd
[BUGFIX] Fixed group not matching domain with no parameters (issue: #468 ).
...
- Added unit-tests
2021-03-26 01:32:01 +01:00
Simon Sessingø
39ee1bb7cd
Added missing phpDocs for parameters.
2021-03-25 14:31:04 +01:00
Simon Sessingø
cf1c59aee0
Changed parameter name and added parameter phpDocs description.
2021-03-25 14:24:50 +01:00
Simon Sessingø
d9cfa71534
Fixed naming in unit-tests.
2021-03-25 14:21:30 +01:00
Simon Sessingø
cf6750aaf3
[FEATURE] Optimised Request::getIp method
...
- Added unit-tests for Request::getIp
- Optimised existing RequestTest unit-tests.
2021-03-25 14:18:56 +01:00
Simon Sessingø
11313a31dc
Merge pull request #504 from DeveloperMarius/get-ip-proxy
...
Get the ip when the user is using a proxy
2021-03-25 14:17:55 +01:00
DeveloperMarius
4cb2fa521f
v4-development sync
2021-03-25 13:41:04 +01:00
Simon Sessingø
8835aca02e
[FEATURE] Added Request::getContentType for content-type header-parsing
...
- Added unit-tests for Request::getContentType parsing.
2021-03-25 13:09:23 +01:00
Simon Sessingø
86bb88a41f
[FEATURE] Added better support for nested file/arrays in InputHandler.
...
- Added unit tests for file arrays
- Removed legacy .yml configs
2021-03-25 05:58:49 +01:00
Simon Sessingø
fdf11bbc9c
Merge pull request #517 from DeveloperMarius/file-tests
...
PHPUnit file tests
2021-03-25 04:34:29 +01:00
Simon Sessingø
2b9403db28
Features & bugfixes
...
- Feature: added new getFirstHeader to Request object that will return the first header found from array list- used to simplify the code.
- Feature: added new InputHandler::getValueFromArray method that loops through input-items to ensure that value is always returned.
- Fixed calling getUrl with array as parameters option throws error.
- Fixed `SimpleRouter::getUrl` having wrong nullable return type.
2021-03-25 03:41:11 +01:00
Simon Sessingø
0ec7c0d960
Optimisations
...
- Added phpunit cache to .gitignore
- Updated README with latest helper.php example.
- Minor phpDocs changes.
2021-03-24 23:18:17 +01:00
Simon Sessingø
d9c63699f5
Merge pull request #516 from DeveloperMarius/phpunit-fix
...
[IMPORTANT] PHPUnit fix: Element 'coverage': This element is not expected.
2021-03-24 14:03:58 +01:00
DeveloperMarius
3e1333ccd4
Defined variables for the file data
2021-03-24 13:32:15 +01:00
DeveloperMarius
fef65313e5
Added file content test for all platforms
2021-03-24 13:20:41 +01:00
DeveloperMarius
5624c4b2bb
testFiles and test file content on server
2021-03-24 13:11:07 +01:00
DeveloperMarius
543e550daf
PHPUnit fix: Element 'coverage': This element is not expected.
2021-03-24 11:48:29 +01:00
Simon Sessingø
22d531178a
Merge pull request #512 from DeveloperMarius/github-actions
...
GitHub actions
2021-03-23 15:57:03 +01:00
DeveloperMarius
0892f5b6f3
replaced php version 7.3 with with 7.1
2021-03-23 15:49:32 +01:00
DeveloperMarius
1d48034910
code cleanup
2021-03-23 15:48:36 +01:00
DeveloperMarius
61fee760b0
use phpunit version 7.5.20 like composer
2021-03-23 15:46:22 +01: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ø
dbd8d381e7
Updated travis.yml
2021-03-23 15:31:47 +01:00
Simon Sessingø
57936b7857
Reverted back php-unit version
2021-03-23 15:26:57 +01:00
Simon Sessingø
c466af556e
Updated travis.yml
2021-03-23 15:22:31 +01:00
Simon Sessingø
db63aff668
Updated php-unit to version 9
2021-03-23 15:20:05 +01:00
Simon Sessingø
df52ec3df7
Updated travis.yml
2021-03-23 15:15:58 +01:00
Simon Sessingø
7920188956
Updated travis.yml
2021-03-23 15:11:44 +01:00
Simon Sessingø
635b127357
Fixed correct return type for InputFile.
2021-03-23 15:06:21 +01:00