Epic #70573

Clean up entrypoints

Added by Benni Mack over 4 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
System/Bootstrap/Configuration
Target version:
-
Start date:
2013-08-29
Due date:
% Done:

100%

Sprint Focus:

Description

The goal for CMS7 is that there are only the required entrypoints left over, and the path anaylsis distributed throughout the core is minimized.

Thus, the leftover entrypoints are defined as this:

  • index.php (eID and TSFE requests)
  • typo3/index.php (Routes, AJAX requests, module requests)
  • typo3/cli_dispatch.php (calling registered CLI keys)
  • typo3/sysext/install/Start/Install.php

For all backend parts (typo3/index.php) classes handling the incoming data (requests) and outgoing result (response) are handled by classes built on the PSR-7 interfaces. For CLI keys, a new option to register anonymous functions and custom classes (callables) is given.

The TYPO3 core should still support, but deprecate any other way (custom modules linked to their own entryscrips) for modules etc, in order to achieve the following possibilities in v8:

1. Allow a way to only have index.php in the web folder.
Why? Then we are more secure in terms of what scripts are available to the outside world, we don't need the checks in extensions anymore about if TYPO3_MODE was defined or not.
- We need to find a good way (via composer) to install extensions outside of the doc root.
- We need to find a good way to have resources available in the docroot (puli?).
- We need to get rid of typo3/index.php as well, somehow.

2. Allow a way to make routing use the PATHINFO variable instead of &route=
- This should be doable as soon as v8 only has typo3/index.php as entrypoint.
- Once the new Icon API is used everywhere, and ExtJS is out, references to assets can be set up in a new way then.

3. For the routing, the functionality needs to be extended to allow variables inside the route path (patch is pending) and have the module registration done similarly as registering routes now. This way, the ext_tables.php is almost not needed anymore.


Subtasks

Task #51482: Deprecate script based modulesClosedBenni Mack

Task #70574: Change EXT:form wizard to use AJAX routes ClosedBenni Mack

Task #70055: Allow modules to override instead of hard-coded pathsClosedBenni Mack

History

#1 Updated by Benni Mack over 4 years ago

  • Status changed from New to Closed

Also available in: Atom PDF