mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-10 00:36:13 +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:
parent
214ea7b4de
commit
a0955b5e0b
4 changed files with 4 additions and 4 deletions
|
@ -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(
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue