[!!!][TASK] Remove legacy entrypoint for Install Tool 93/54093/2
authorBenni Mack <benni@typo3.org>
Sun, 10 Sep 2017 09:27:23 +0000 (11:27 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 10 Sep 2017 13:59:53 +0000 (15:59 +0200)
The entrypoint located under "typo3/sysext/install/Start/Install.php" has been
removed, as the entrypoint "typo3/install.php" is the new way to access the install
tool. The legacy entrypoint "typo3/install/index.php" will still be kept, as it is
easy for existing users to get a simple redirect (still marked as deprecated).

Resolves: #82433
Releases: master
Change-Id: I36a165649c7ca5a988379b70328e570fc45285b0
Reviewed-on: https://review.typo3.org/54093
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Documentation/Changelog/master/Breaking-81951-InstallToolEntryPointRemoved.rst [new file with mode: 0644]
typo3/sysext/install/Start/Install.php [deleted file]

diff --git a/typo3/sysext/core/Documentation/Changelog/master/Breaking-81951-InstallToolEntryPointRemoved.rst b/typo3/sysext/core/Documentation/Changelog/master/Breaking-81951-InstallToolEntryPointRemoved.rst
new file mode 100644 (file)
index 0000000..4e47426
--- /dev/null
@@ -0,0 +1,35 @@
+.. include:: ../../Includes.txt
+Breaking: #82433 - Install Tool entry point removed
+See :issue:`82433`
+The canonical entry point for accessing the install tool now is `typo3/install.php`. The previous entrypoint
+located in `typo3/sysext/install/Start/Install.php` has been removed. The deprecated entrypoint located under
+`typo3/install/index.php` still exists, but `typo3/install.php` is the new way to access the install tool,
+available since TYPO3 8 LTS.
+Accessing `typo3/sysext/install/Start/Install.php` will trigger a Server-based "Page Not Found" error message.
+Affected Installations
+Every TYPO3 installation using the old entry point is affected.
+Change bookmarks or scripts from the old entry point to the new one.
+.. index:: Backend, NotScanned
index 02ada8b..c442027 100644 (file)
@@ -17,7 +17,7 @@ The canonical entry point for accessing the install tool now is:
-Accessing `typo3/install/` or `typo3/sysext/install/Start/Install.php` will still work, but has been deprecated.
+Accessing `typo3/install/` will still work, but has been deprecated.
 Affected Installations
@@ -29,6 +29,6 @@ Every TYPO3 installation is affected.
-Change bookmarks or scripts from the old entry point(s) to the new one.
+Change bookmarks or scripts from the old entry point to the new one.
 .. index:: Backend, NotScanned
diff --git a/typo3/sysext/install/Start/Install.php b/typo3/sysext/install/Start/Install.php
deleted file mode 100644 (file)
index a40684c..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-// Exit early if php requirement is not satisfied.
-if (version_compare(PHP_VERSION, '7.0.0', '<')) {
-    die('This version of TYPO3 CMS requires PHP 7.0 or above');
-// This is a stub file for redirecting the user to the proper Install Tool URL
-call_user_func(function () {
-    // We leverage the class loader here to get the static functionality of GeneralUtility and HttpUtility.
-    // This way we do not need to copy all the code here to cope with correct location header URL generation correctly
-    // as those two classes can already correctly deal with all known edge cases.
-    require __DIR__ . '/../../../../vendor/autoload.php';
-    // We ensure that possible notices from Core code do not kill our redirect due to PHP output
-    error_reporting(E_ALL & ~(E_STRICT | E_NOTICE | E_DEPRECATED));
-    // @deprecated in 9.x will be removed in 10.0
-    \TYPO3\CMS\Core\Utility\HttpUtility::redirect('../../../install.php', \TYPO3\CMS\Core\Utility\HttpUtility::HTTP_STATUS_307);