Project

General

Profile

Actions

Feature #77790

closed

Allow "entryPointLevel" as parameter in "Application" constructor

Added by Markus Hölzle over 7 years ago. Updated over 6 years ago.

Status:
Rejected
Priority:
Should have
Category:
-
Target version:
-
Start date:
2016-09-02
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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();
Actions

Also available in: Atom PDF