[!!!][FEATURE] Introduce Backend Routing
A new Routing API is introduced in order to streamline the entrypoints to the TYPO3 Backend. All previous patches by Wouter for the dispatched modules are the foundation for this change. Instead of using the term "module" for anything linkable in the backend, the term "routes" fits more. A "module" or an ajax call is a derivative of a route, which will build on this foundation. Routes can be registered via Configuration/Backend/Routes.php in any extension and are loaded solely on Backend requests. The Routing API is inspired by the Symfony Routing framework and mostly compatible for now but the TYPO3 implementation only takes around 20% of the needed logic. There are three new classes: - Route (a single route with a path and some options) - Router (API to match paths and generate URLs) - UrlGenerator (Generates the URL) This patch changes the entrypoint for login/logout to typo3/index.php/myroute/?token=... making index.php the only entrypoint to the TYPO3 Backend in the future and using the PATH_INFO functionality of the browser to store the route. The main RequestHandler of all Backend modules detects where a PATH_INFO is given and then resolves to a controller/action logic and checks for a valid token. Once this patch is in, all non-module entrypoints are moved to the new format. See http://wiki.typo3.org/Blueprints/BackendRouting for implementation details. Resolves: #65493 Releases: master Change-Id: I91b5812c833c558794f70fd4504f2da452b1c3ce Reviewed-on: http://review.typo3.org/37476 Reviewed-by:Nicole Cordes <typo3@cordes.co> Tested-by:
Nicole Cordes <typo3@cordes.co> Reviewed-by:
Helmut Hummel <helmut.hummel@typo3.org> Tested-by:
Helmut Hummel <helmut.hummel@typo3.org>
Showing
- typo3/backend.php 0 additions, 27 deletionstypo3/backend.php
- typo3/index.php 5 additions, 9 deletionstypo3/index.php
- typo3/sysext/backend/Classes/AjaxRequestHandler.php 1 addition, 0 deletionstypo3/sysext/backend/Classes/AjaxRequestHandler.php
- typo3/sysext/backend/Classes/BackendModuleRequestHandler.php 1 addition, 0 deletionstypo3/sysext/backend/Classes/BackendModuleRequestHandler.php
- typo3/sysext/backend/Classes/Controller/BackendController.php 38 additions, 0 deletions...3/sysext/backend/Classes/Controller/BackendController.php
- typo3/sysext/backend/Classes/Controller/LoginController.php 17 additions, 4 deletionstypo3/sysext/backend/Classes/Controller/LoginController.php
- typo3/sysext/backend/Classes/Controller/LogoutController.php 14 additions, 3 deletionstypo3/sysext/backend/Classes/Controller/LogoutController.php
- typo3/sysext/backend/Classes/RequestHandler.php 101 additions, 15 deletionstypo3/sysext/backend/Classes/RequestHandler.php
- typo3/sysext/backend/Classes/Routing/Exception/ResourceNotFoundException.php 20 additions, 0 deletions...d/Classes/Routing/Exception/ResourceNotFoundException.php
- typo3/sysext/backend/Classes/Routing/Exception/RouteNotFoundException.php 20 additions, 0 deletions...kend/Classes/Routing/Exception/RouteNotFoundException.php
- typo3/sysext/backend/Classes/Routing/Generator/UrlGenerator.php 115 additions, 0 deletions...sysext/backend/Classes/Routing/Generator/UrlGenerator.php
- typo3/sysext/backend/Classes/Routing/Route.php 127 additions, 0 deletionstypo3/sysext/backend/Classes/Routing/Route.php
- typo3/sysext/backend/Classes/Routing/Router.php 192 additions, 0 deletionstypo3/sysext/backend/Classes/Routing/Router.php
- typo3/sysext/backend/Classes/Template/DocumentTemplate.php 1 addition, 0 deletionstypo3/sysext/backend/Classes/Template/DocumentTemplate.php
- typo3/sysext/backend/Classes/Utility/BackendUtility.php 25 additions, 0 deletionstypo3/sysext/backend/Classes/Utility/BackendUtility.php
- typo3/sysext/backend/Configuration/Backend/Routes.php 44 additions, 0 deletionstypo3/sysext/backend/Configuration/Backend/Routes.php
- typo3/sysext/backend/ext_tables.php 0 additions, 6 deletionstypo3/sysext/backend/ext_tables.php
- typo3/sysext/core/Classes/Core/Bootstrap.php 14 additions, 0 deletionstypo3/sysext/core/Classes/Core/Bootstrap.php
- typo3/sysext/core/Documentation/Changelog/master/Feature-65493-BackendRouting.rst 34 additions, 0 deletions...ntation/Changelog/master/Feature-65493-BackendRouting.rst
Please register or sign in to comment