Commit Graph

  • 5c8ff17aec Updated documentation for information about multi-route-rendering. Simon Sessingø 2021-03-22 19:43:13 +01:00
  • 1d2e5f47d9 [FEATURE] Option to disable multi-route rendering - Added option to disable multi-route rendering by calling Router::setRenderMultipleRoutes($bool). - Added alias for easier access SimpleRouter::enableMultiRouteRendering($bool). - Added php-unit tests for multi-routing enabled and disabled. Simon Sessingø 2021-03-22 19:34:55 +01:00
  • f74252e8cc Removed newline Simon Sessingø 2021-03-22 18:34:14 +01:00
  • 2fb59854be [BUGFIX] Issue #439: Fixed multiple request-type on same routes. Simon Sessingø 2021-03-22 18:33:16 +01:00
  • 801f1e68cc [BUGFIX] BootManager findRoute not working. - Fixed findRoute not working in BootManager as reported by issue: #448 - Added more comprehensive php-unit tests for bootmanagers including findUrl. Simon Sessingø 2021-03-22 18:05:27 +01:00
  • fa83d2f74b Default-namespace changes. - Added new ClassNotFoundHttpException thrown when class is not found. - ClassNotFoundHttpException is now thrown when class/method is not found (backwards compatible). - Added unit-tests for default-namespace tests (rewrite + append cases). Simon Sessingø 2021-03-22 17:03:22 +01:00
  • fd585e8b9d [FEATURE] Changed behavior for default-namespace after issue #446 - Router::setDefaultNamespace() no longer has to be set in the beginning of routes.php. - Default namespace are now set once the router is started (Router::start()). - [WIP] Added unit-tests for custom-namespaces. Simon Sessingø 2021-03-22 16:41:20 +01:00
  • 11fffd9a7b [FEATURE] Added option to get/set the filterEmptyParams option on IRoute classes (as requested by: #453). Simon Sessingø 2021-03-22 15:06:20 +01:00
  • 87e9c19edb Added unit-tests for input->all() method. Simon Sessingø 2021-03-22 14:49:33 +01:00
  • 8a0f30c05e Custom regex fix - Fixed issue with custom-regex maching both host-name and url (issue: #503). - Changed TestRouter so host-name is always set. Simon Sessingø 2021-03-22 14:09:27 +01:00
  • 1e0417b249 also check remote-addr (can be edited https://stackoverflow.com/questions/5092563/how-to-fake-serverremote-addr-variable) Marius Karstedt 2021-03-22 11:18:16 +01:00
  • 24f7e3ab13 Validate IP header Marius Karstedt 2021-03-22 11:15:47 +01:00
  • d2b3ea4f54 Added better header parsing to Request-class. - Added tryParse argument to the getHeader method. When enabled the method will try to parse headers from both server and client-side (enabled by default). - Simplified references that checks for both variants of header (http/non http). - Simplified getIp method of the Request-class. Simon Sessingø 2021-03-22 11:14:22 +01:00
  • 90a0ca2ee8 Add cf ip header to none save call Marius Karstedt 2021-03-22 11:06:33 +01:00
  • 9897f66a25 Add $safe Marius Karstedt 2021-03-22 11:04:33 +01:00
  • e77b723db3 Add http-client-ip header Marius Karstedt 2021-03-22 10:57:58 +01:00
  • 0aeefa1cba Removed ob_end_clean when using ob_get_clean. Simon Sessingø 2021-03-21 15:22:35 +01:00
  • 8254c5b100 Development - Removed unused class references. - Removed escape from - in reg-ex as it's only required when next to character-class. - Added $_FILE support for all method. - Bugfixes. Simon Sessingø 2021-03-21 15:19:27 +01:00
  • 4639879a67 Merge pull request #502 from skipperbent/DeveloperMarius-get-csrf-token Simon Sessingø 2021-03-21 14:59:08 +01:00
  • 14fe889298 Merge branch 'v4-development' into DeveloperMarius-get-csrf-token Simon Sessingø 2021-03-21 14:58:20 +01:00
  • dfcbbb4033 Merge pull request #501 from DeveloperMarius/get-csrf-token Simon Sessingø 2021-03-21 14:57:10 +01:00
  • e8a1eac167 Development - Moved request-types constants from abstract Route class to global Request-class and changed references. - Changed code to use new global request-type constants. - Optimized InputHandler class so it only parses inputs once when calling all-method. - Forced csrf-token post-value are now availible in all requestTypePost methods. Simon Sessingø 2021-03-21 14:52:34 +01:00
  • 2ff278baef Merge branch 'get-csrf-token' of https://github.com/DeveloperMarius/simple-php-router into DeveloperMarius-get-csrf-token Simon Sessingø 2021-03-21 14:16:20 +01:00
  • 388be3d870 Merge pull request #500 from DeveloperMarius/remove-idea-config Simon Sessingø 2021-03-21 14:03:05 +01:00
  • f45e0bd12a Removed .idea folder and removed "index" output from the unit-tests. Simon Sessingø 2021-03-21 13:59:35 +01:00
  • 31b4b4673e add csrf token check for patch Marius Karstedt 2021-03-21 12:20:57 +01:00
  • 05e5461acb get csrf token in request; Test for prefix 'http-' in csrf token header Marius Karstedt 2021-03-21 11:40:37 +01:00
  • 3970ad85c4 remove .idea files Marius Karstedt 2021-03-21 10:47:49 +01:00
  • 38ce2e6bba Unit test fixes Simon Sessingø 2021-03-21 08:02:41 +01:00
  • 2306ab47db Merge pull request #499 from skipperbent/fix-partial-group Simon Sessingø 2021-03-21 07:57:14 +01:00
  • 4674dbef1a Merge branch 'v4-development' into fix-partial-group Simon Sessingø 2021-03-21 07:57:01 +01:00
  • f50ed6cd27 Merge pull request #498 from skipperbent/v4-array-callback Simon Sessingø 2021-03-21 07:55:27 +01:00
  • d70b153189 [BUGFIX] Fixed issue with child groups not loading when using partialGroups (issue: #456) Simon Sessingø 2021-03-21 07:39:17 +01:00
  • 21d180ebc9 [FEATURE] Added support for class hinting on routes as requested by #491 Simon Sessingø 2021-03-21 05:55:18 +01:00
  • e78040aabd Fixed existing unit-tests. Simon Sessingø 2021-03-18 21:58:40 +01:00
  • 252cc4a75d Optimized InputHandler to better support nested values. Simon Sessingø 2021-03-18 21:23:03 +01:00
  • 24ef438334 Merge pull request #495 from SimonSchobel/patch-1 Simon Sessingø 2021-03-18 14:03:39 +01:00
  • 6fc0241bab Fixed bug in getIp Simon Schøbel 2021-03-18 08:12:48 +01:00
  • 19b1a14dec Parameters are by default now using regex [\w\-]+ (supports dashes) to avoid confusion. Simon Sessingø 2021-03-18 03:24:47 +01:00
  • fb726c3613 Issue #437: Fixed CSRF-token returning null on first refresh after cookies are removed. Simon Sessingø 2021-03-18 02:50:06 +01:00
  • 11a69c2f72 Fixed user-tests after changes to input->all() method. Simon Sessingø 2021-03-17 20:26:07 +01:00
  • ff8ef9d412 Merge branch 'v4-development' of github.com:skipperbent/simple-php-router into v4-development Simon Sessingø 2021-03-17 20:20:56 +01:00
  • ca88e86c3d Development Simon Sessingø 2021-03-17 20:20:28 +01:00
  • 5a24dfd4a1 Merge pull request #461 from b3none/master Simon Sessingø 2021-03-17 19:25:51 +01:00
  • 891c2092eb Changed codestyle to match the rest Simon Sessingø 2021-03-17 19:25:18 +01:00
  • 845ef9db69 Merge pull request #450 from RedooNetworks/master Simon Sessingø 2021-03-17 19:17:01 +01:00
  • 00c9f9cafd Update composer.json Simon Sessingø 2021-03-17 19:16:08 +01:00
  • 0fe2733c85 Merge pull request #445 from KarelWintersky/patch-1 Simon Sessingø 2021-03-17 19:14:15 +01:00
  • ce3a2014d1 Merge pull request #449 from jatubio/patch-4 Simon Sessingø 2021-03-17 19:12:00 +01:00
  • 27cd8b8a1f Added support for objects like array etc as default-value. Value is now less strict. Simon Sessingø 2021-03-17 15:43:00 +01:00
  • 93c0622b9d Altered variable name in foreach to be less ambiguous. Alex Blackham 2019-06-21 10:45:57 +01:00
  • 572ba1695b The input()->all method will now set every key specified in the filter. If the key doesn't exist it will be set to null. Alex Blackham 2019-06-21 10:44:31 +01:00
  • 1c5701a297 Update compsoer.json Stefan Warnat 2019-05-19 11:02:09 +02:00
  • 11df7ca18c Fix warning, because of wrong calculated cookie expiration timestamp Stefan Warnat 2019-02-09 11:04:07 +01:00
  • b21feca1fc Update IClassLoader.php Juan Antonio Tubio 2019-02-08 21:40:04 +01:00
  • 2a3238f30a Update ClassLoader.php Juan Antonio Tubio 2019-02-08 21:36:58 +01:00
  • cb141314f7 Update README.md Karel Wintersky 2019-01-28 17:43:11 +03:00
  • 153f8630f2 Merge pull request #435 from skipperbent/v4-release Simon Sessingø 2018-11-25 00:47:26 +01:00
  • b715c48415 Merge pull request #434 from skipperbent/v4-development 4.2.0.6 Simon Sessingø 2018-11-25 00:47:02 +01:00
  • d601e8eca3 Bugfixes and optimisations. Simon Sessingø 2018-11-25 00:44:20 +01:00
  • 4a8b71a0b5 Merge pull request #430 from Tahrz/master Simon Sessingø 2018-11-25 00:27:54 +01:00
  • bd01a8a802 Merge pull request #431 from matheusheiden/master Simon Sessingø 2018-11-25 00:27:30 +01:00
  • 55bcd4e030 Merge pull request #1 from matheusheiden/matheusheiden-patch-1 Matheus 2018-11-10 22:17:08 -02:00
  • d4a6d504b1 Set HTTP method before initializing InputHandler Matheus 2018-11-10 22:16:45 -02:00
  • 9e3b1b6baa fix for __invoke methods (if there are only in class (Action)) Taras Victorovich 2018-10-02 15:40:26 +03:00
  • 1395527cc6 Merge pull request #428 from skipperbent/v4-release Simon Sessingø 2018-08-31 01:41:48 +02:00
  • ac594ebde2 Merge pull request #427 from skipperbent/v4-development 4.2.0.5 Simon Sessingø 2018-08-31 01:41:36 +02:00
  • 064154f27f Merge pull request #426 from skipperbent/v4-optimisations Simon Sessingø 2018-08-31 01:41:05 +02:00
  • 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. Simon Sessingø 2018-08-31 01:40:21 +02:00
  • da8dfdb135 Merge pull request #424 from skipperbent/v4-release Simon Sessingø 2018-08-24 17:24:48 +02:00
  • 57c9da2c42 Merge pull request #423 from skipperbent/v4-development 4.2.0.4 Simon Sessingø 2018-08-24 17:24:25 +02:00
  • 6bdfe06223 Merge pull request #422 from skipperbent/v4-optional-character-fix Simon Sessingø 2018-08-24 17:23:43 +02:00
  • 5c2a973214 Merge branch 'v4-development' into v4-optional-character-fix Simon Sessingø 2018-08-24 17:23:33 +02:00
  • a7cbacbde7 Fix for issue #421: Incorrectly optional character in route Simon Sessingø 2018-08-24 17:16:02 +02:00
  • f0c851e49d Merge pull request #417 from skipperbent/v4-release Simon Sessingø 2018-04-22 05:37:41 +02:00
  • 45a5176b3c Merge pull request #416 from skipperbent/v4-development 4.2.0.3 Simon Sessingø 2018-04-22 05:37:29 +02:00
  • 2d042391aa Merge pull request #415 from skipperbent/v4-fix-input-all-empty Simon Sessingø 2018-04-22 05:36:10 +02:00
  • 4d842d0583 Fixed returning empty array when positing json (issue #413) Simon Sessingo 2018-04-22 05:34:31 +02:00
  • 7c54d319e6 Merge pull request #411 from skipperbent/v4-release Simon Sessingø 2018-04-06 19:46:01 +02:00
  • 9ccff91287 Merge pull request #410 from skipperbent/v4-development 4.2.0.2 Simon Sessingø 2018-04-06 19:45:51 +02:00
  • 8653bfa86f Development - Fixed 403 not allowed exception is now thrown as NotFoundHttpException. - Added REQUEST_TYPE_HEAD to Route class. - Minor optimizations. Simon Sessingø 2018-04-06 19:44:30 +02:00
  • e51290dfd8 Merge pull request #409 from skipperbent/v4-release Simon Sessingø 2018-04-06 18:04:28 +02:00
  • 13501b3f88 Merge pull request #408 from skipperbent/v4-development 4.2.0.1 Simon Sessingø 2018-04-06 18:04:01 +02:00
  • b8cfc4eb0b Fixed default parameter for all method allowed to by empty. Simon Sessingø 2018-04-06 18:01:49 +02:00
  • 5db4621831 Added methods for adding get, post and file parameters manually. Simon Sessingø 2018-04-06 18:00:59 +02:00
  • d4bbb6641d Merge pull request #407 from skipperbent/v4-release Simon Sessingø 2018-04-06 17:28:12 +02:00
  • af641e3805 Merge pull request #406 from skipperbent/v4-development 4.2.0.0 Simon Sessingø 2018-04-06 17:27:42 +02:00
  • d38f81836d Development - Added new Redirect method to SimpleRouter class. - Changed method-names in InputHandler for better description. - Fixed return-types for InputHandler for collections. - Added unit-tests for InputHandler (get, post). - Optimisations. Simon Sessingø 2018-04-06 17:20:00 +02:00
  • ca1e2ef94b Merge pull request #404 from skipperbent/v4-release Simon Sessingø 2018-04-05 12:19:27 +02:00
  • 89be00a72a Merge pull request #402 from skipperbent/v4-development 4.1.0.0 Simon Sessingø 2018-04-02 14:56:12 +02:00
  • 30a2ddeed9 Development - Added new event when adding route. - Added prependUrl method to LoadableRoute class. - Added unit-test for add-route event. - Updated documentation to reflect new changes. Simon Sessingø 2018-04-02 14:53:36 +02:00
  • 313833d78a Merge pull request #400 from skipperbent/v4-development 4.0.0.13 Simon Sessingø 2018-04-01 04:28:06 +02:00
  • 17a7b28e82 Fixed exists method in InputHandler returning incorrect value. Simon Sessingø 2018-04-01 04:26:48 +02:00
  • e77d78e2f2 Merge pull request #399 from skipperbent/v4-development 4.0.0.12 Simon Sessingø 2018-04-01 03:02:49 +02:00
  • 1dc88d23e1 Bugfixes and optimizations - Fixed hasParam not working returning expected value in Url class. - Chained the remaining methods in the Url class. - Simplified removeParam method in Url class. - Added new removeParams method to Url class for removal of multiple params. Simon Sessingø 2018-04-01 03:02:21 +02:00
  • bd033d9e13 Merge pull request #398 from skipperbent/v4-development 4.0.0.11 Simon Sessingø 2018-03-30 06:48:15 +02:00
  • 53f0b7d8e2 - Fixed getName method in LoadableRoute class can contain nullable value. Simon Sessingø 2018-03-30 06:47:27 +02:00
  • 5df0c12864 Updated helpers Simon Sessingø 2018-03-30 05:54:12 +02:00
  • 5bae3ff773 Merge pull request #397 from skipperbent/v4-development 4.0.0.10 Simon Sessingø 2018-03-30 05:38:27 +02:00
  • 833961ddc3 Fixed getError in InputFile returning string instead of int. Simon Sessingø 2018-03-30 05:37:04 +02:00