[TASK] Add proper exception handling to RouterInterface logic
Two new Exceptions are now thrown when routing does not work, one being thrown when a URL is generated but could not be generated, and one when a URL could not be resolved. This is much cleaner than the distinction of a nullable return type, so the new interface is adapted as well. As a drive-by fix, the Backend routing exception now inherits from this new exception. Resolves: #86500 Releases: master Change-Id: Ifaf7b61422dfd49df18399c3bcbdf735bc522cba Reviewed-on: https://review.typo3.org/58519 Tested-by:TYPO3com <no-reply@typo3.com> Reviewed-by:
Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by:
Oliver Hader <oliver.hader@typo3.org> Tested-by:
Oliver Hader <oliver.hader@typo3.org> Reviewed-by:
Susanne Moog <susanne.moog@typo3.org> Tested-by:
Susanne Moog <susanne.moog@typo3.org>
Showing
- typo3/sysext/backend/Classes/Routing/Exception/RouteNotFoundException.php 1 addition, 1 deletion...kend/Classes/Routing/Exception/RouteNotFoundException.php
- typo3/sysext/backend/Classes/Utility/BackendUtility.php 2 additions, 1 deletiontypo3/sysext/backend/Classes/Utility/BackendUtility.php
- typo3/sysext/core/Classes/Routing/InvalidRouteArgumentsException.php 24 additions, 0 deletions...t/core/Classes/Routing/InvalidRouteArgumentsException.php
- typo3/sysext/core/Classes/Routing/PageRouter.php 11 additions, 9 deletionstypo3/sysext/core/Classes/Routing/PageRouter.php
- typo3/sysext/core/Classes/Routing/RouteNotFoundException.php 24 additions, 0 deletionstypo3/sysext/core/Classes/Routing/RouteNotFoundException.php
- typo3/sysext/core/Classes/Routing/RouterInterface.php 4 additions, 2 deletionstypo3/sysext/core/Classes/Routing/RouterInterface.php
- typo3/sysext/core/Classes/Routing/SiteMatcher.php 2 additions, 0 deletionstypo3/sysext/core/Classes/Routing/SiteMatcher.php
- typo3/sysext/frontend/Classes/Middleware/PageResolver.php 11 additions, 2 deletionstypo3/sysext/frontend/Classes/Middleware/PageResolver.php
- typo3/sysext/frontend/Classes/Typolink/PageLinkBuilder.php 11 additions, 6 deletionstypo3/sysext/frontend/Classes/Typolink/PageLinkBuilder.php
- typo3/sysext/viewpage/Classes/Controller/ViewModuleController.php 0 additions, 1 deletion...sext/viewpage/Classes/Controller/ViewModuleController.php
Please register or sign in to comment