Skip to content

Commit 5265dcc

Browse files
bmackachimfritz
authored andcommitted
[TASK] Add TYPO3 v14 compatibility
1 parent defe322 commit 5265dcc

File tree

4 files changed

+19
-9
lines changed

4 files changed

+19
-9
lines changed

Configuration/Icons.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
return [
4+
'ctype-cta' => [
5+
'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
6+
'source' => 'EXT:cta/Resources/Public/Icons/Cta.svg',
7+
]
8+
];

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010
},
1111
"require": {
12-
"typo3/cms-backend": "^10.4 || ^11.0 || ^12.4 || ^13.0",
13-
"typo3/cms-fluid-styled-content": "^10.4 || ^11.0 || ^12.4 || ^13.0"
12+
"typo3/cms-backend": "^10.4 || ^11.0 || ^12.4 || ^13.0 || ^14.0",
13+
"typo3/cms-fluid-styled-content": "^10.4 || ^11.0 || ^12.4 || ^13.0 || ^14.0"
1414
}
1515
}

ext_emconf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
'constraints' => [
1313
'depends' => [
1414
'fluid_styled_content' => '*',
15-
'typo3' => '10.4.0-13.99.99',
15+
'typo3' => '10.4.0-14.99.99',
1616
]
1717
]
1818
);

ext_localconf.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@
1010
*/
1111

1212
call_user_func(static function () {
13-
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
14-
$iconRegistry->registerIcon(
15-
'ctype-cta',
16-
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
17-
['source' => 'EXT:cta/Resources/Public/Icons/Cta.svg']
18-
);
13+
if ((new \TYPO3\CMS\Core\Information\Typo3Version())->getMajorVersion() < 12) {
14+
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
15+
$iconRegistry->registerIcon(
16+
'ctype-cta',
17+
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
18+
['source' => 'EXT:cta/Resources/Public/Icons/Cta.svg']
19+
);
20+
}
1921
});

0 commit comments

Comments
 (0)