mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-12-22 22:46:10 +01:00

[TASK] Substitute TYPO3_MODE constant with TYPO3 constant (#521)

The TYPO3_MODE constant is deprecated with v11.0. The new constant
TYPO3, which replaces the old constant, was introduced also in
TYPO3 v10 with version v10.4.11:

https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.0/Deprecation-92947-DeprecateTYPO3_MODEAndTYPO3_REQUESTTYPEConstants.html

As best practice, we should also use the new constant and
raise the composer constraints for TYPO3 accordingly.
This commit is contained in:
Chris Müller 2022-08-28 12:22:38 +02:00 committed by GitHub
parent 214ea7b4de
commit a0955b5e0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
<?php
defined('TYPO3_MODE') || die('Access denied.');
defined('TYPO3') || die('Access denied.');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('tea', 'Configuration/TypoScript', 'Tea');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(

View file

@ -1,6 +1,6 @@
<?php
defined('TYPO3_MODE') || die();
defined('TYPO3') || die();
// This makes the plugin selectable in the BE.
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(

View file

@ -28,7 +28,7 @@
},
"require": {
"php": "~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0",
"typo3/cms-core": "^10.4 || ^11.5.2",
"typo3/cms-core": "^10.4.11 || ^11.5.2",
"typo3/cms-extbase": "^10.4.6 || ^11.5.2",
"typo3/cms-fluid": "^10.4 || ^11.5.2",
"typo3/cms-frontend": "^10.4 || ^11.5.2"

View file

@ -1,6 +1,6 @@
<?php
defined('TYPO3_MODE') or die('Access denied.');
defined('TYPO3') or die('Access denied.');
(static function (): void {
// This makes the plugin available for front-end rendering.