Issue Feature Rejected

#77790Allow "entryPointLevel" as parameter in "Application" constructor

Markus Hölzle 09/02/16, 16:12 updated 10/25/17, 07:56

Description

If you need your own index.php script because you want to start TYPO3 from a subdirectory (for security reasons for example) then you have to extend the class “\TYPO3\CMS\Frontend\Http\Application” to overwrite the “protected $entryPointLevel”.

class MyApplication extends \TYPO3\CMS\Frontend\Http\Application
{
    protected $entryPointLevel = 1;
}
(new MyApplication($classLoader))->run();

This would be much easier if you can use the Application class from the core with just an extra parameter:

(new \TYPO3\CMS\Frontend\Http\Application($classLoader, 1))->run();

Reviews 1