[FEATURE] Central system environment check
This patch adds a new structure to the install tool to centralize all system and especially PHP related system checks cluttered in various modules and parts of the core at the moment. The idea is to have a basic, standalone script to test for all requirements TYPO3 CMS has in order to run smoothly. The script does not use any TYPO3 core code and has no further dependencies. With a later patch, the check will be integrated as the very first step during install, to give a good indicator if the final installed system will work well or if any system constraints are not met. Currently, the script is included as a new section in the install tool, called "System environment", where all checks are performed and each gives a status back. This will already help to support questions on mailing lists and should be the first step every user is guided to: "Do you have warnings or errors in the system environment?". The install tool implementation should also help already if moving an instance to a different server. Furthermore, there is a simple integration in the reports module that points to the install tool if issues are found. The class structure is as simple as possible, it is very easy to adapt single checks later on, the API is a single getStatus() method that returns all check object of the specific tests. Due to the nature of the script and the later usage in the installation process, things like localization and so on are not done and should also not be implemented later on. Most current check code is fetched from existing install tool, reports module and bootstrap code. This also make the main Installer.php class of the install tool already a bit better maintainable since 600 lines of code are removed from it. Change-Id: I64387ca9aaa4b429ee4a909cdab4386180af0d45 Resolves: #46219 Releases: 6.1 Reviewed-on: https://review.typo3.org/18870 Reviewed-by: Wouter Wolters Tested-by: Wouter Wolters Reviewed-by: Anja Leichsenring Tested-by: Anja Leichsenring Reviewed-by: Jigal van Hemert Tested-by: Jigal van Hemert Reviewed-by: Christian Kuhn Tested-by: Christian Kuhn
Showing
- typo3/sysext/core/Classes/Core/SystemEnvironmentBuilder.php 1 addition, 39 deletionstypo3/sysext/core/Classes/Core/SystemEnvironmentBuilder.php
- typo3/sysext/core/Classes/Utility/PhpOptionsUtility.php 4 additions, 0 deletionstypo3/sysext/core/Classes/Utility/PhpOptionsUtility.php
- typo3/sysext/install/Classes/Exception.php 33 additions, 0 deletionstypo3/sysext/install/Classes/Exception.php
- typo3/sysext/install/Classes/Installer.php 110 additions, 711 deletionstypo3/sysext/install/Classes/Installer.php
- typo3/sysext/install/Classes/Report/EnvironmentStatusReport.php 85 additions, 0 deletions...sysext/install/Classes/Report/EnvironmentStatusReport.php
- typo3/sysext/install/Classes/Report/InstallStatusReport.php 3 additions, 4 deletionstypo3/sysext/install/Classes/Report/InstallStatusReport.php
- typo3/sysext/install/Classes/Session.php 1 addition, 11 deletionstypo3/sysext/install/Classes/Session.php
- typo3/sysext/install/Classes/SystemEnvironment/AbstractStatus.php 80 additions, 0 deletions...sext/install/Classes/SystemEnvironment/AbstractStatus.php
- typo3/sysext/install/Classes/SystemEnvironment/Check.php 1126 additions, 0 deletionstypo3/sysext/install/Classes/SystemEnvironment/Check.php
- typo3/sysext/install/Classes/SystemEnvironment/ErrorStatus.php 35 additions, 0 deletions.../sysext/install/Classes/SystemEnvironment/ErrorStatus.php
- typo3/sysext/install/Classes/SystemEnvironment/InfoStatus.php 35 additions, 0 deletions...3/sysext/install/Classes/SystemEnvironment/InfoStatus.php
- typo3/sysext/install/Classes/SystemEnvironment/NoticeStatus.php 35 additions, 0 deletions...sysext/install/Classes/SystemEnvironment/NoticeStatus.php
- typo3/sysext/install/Classes/SystemEnvironment/OkStatus.php 35 additions, 0 deletionstypo3/sysext/install/Classes/SystemEnvironment/OkStatus.php
- typo3/sysext/install/Classes/SystemEnvironment/StatusInterface.php 62 additions, 0 deletions...ext/install/Classes/SystemEnvironment/StatusInterface.php
- typo3/sysext/install/Classes/SystemEnvironment/TestImages/jesus.gif 0 additions, 0 deletions...xt/install/Classes/SystemEnvironment/TestImages/jesus.gif
- typo3/sysext/install/Classes/SystemEnvironment/TestImages/jesus.png 0 additions, 0 deletions...xt/install/Classes/SystemEnvironment/TestImages/jesus.png
- typo3/sysext/install/Classes/SystemEnvironment/WarningStatus.php 35 additions, 0 deletions...ysext/install/Classes/SystemEnvironment/WarningStatus.php
- typo3/sysext/install/Resources/Private/Language/Report/locallang.xlf 29 additions, 0 deletions...t/install/Resources/Private/Language/Report/locallang.xlf
- typo3/sysext/install/Resources/Public/Images/menuSystemEnvironment.png 0 additions, 0 deletions...install/Resources/Public/Images/menuSystemEnvironment.png
- typo3/sysext/install/Resources/Public/Stylesheets/general.css 4 additions, 0 deletions...3/sysext/install/Resources/Public/Stylesheets/general.css
Please register or sign in to comment