-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] #101807 - Automatic inclusion of user TSconfig of extensions
Related: TYPO3-Documentation/Changelog-To-Doc#644 Releases: main
- Loading branch information
1 parent
4053f00
commit 458e9c7
Showing
4 changed files
with
53 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
Documentation/UsingSetting/_UserTSconfig/_ext_localconf.php
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
Documentation/UsingSetting/_UserTSconfig/_ext_localconf_v12.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use TYPO3\CMS\Core\Information\Typo3Version; | ||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; | ||
use TYPO3\CMS\Core\Utility\GeneralUtility; | ||
|
||
defined('TYPO3') or die(); | ||
|
||
$versionInformation = GeneralUtility::makeInstance(Typo3Version::class); | ||
// Only include user.tsconfig if TYPO3 version is below 13 so that it is not imported twice. | ||
if ($versionInformation->getMajorVersion() < 13) { | ||
ExtensionManagementUtility::addUserTSConfig( | ||
'@import "EXT:my_sitepackage/Configuration/user.tsconfig"' | ||
); | ||
} |