mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-12-23 23:46:09 +01:00
tea/Configuration/TCA/Overrides/sys_template.php
Chris Müller a0955b5e0b
[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.
2022-08-28 12:22:38 +02:00

10 lines
313 B
PHP

<?php
defined('TYPO3') || die('Access denied.');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('tea', 'Configuration/TypoScript', 'Tea');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
'tea',
'Configuration/TypoScript/Frontend/',
'Tea frontend (optional)'
);