Skip to content

Commit d443e12

Browse files
author
Rudy Gnodde
committed
[BUGFIX] Fix TYPO3 8.7 compatibility
1 parent 08e9533 commit d443e12

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2021-02-11 Rudy Gnodde
2+
* Version 1.0.8
3+
* Fix TYPO3 8.7 compatibility
4+
15
2020-05-17 Rudy Gnodde
26
* Version 1.0.7
37
* Fix bug in FileProvider

Classes/Controller/RandomdataCommandController.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,12 @@ public function configure()
7474
*/
7575
public function execute(InputInterface $input, OutputInterface $output)
7676
{
77-
Bootstrap::initializeBackendAuthentication();
77+
if (version_compare(TYPO3_version, '9.0.0', '>=')) {
78+
Bootstrap::initializeBackendAuthentication();
79+
} else {
80+
$bootstrap = Bootstrap::getInstance();
81+
$bootstrap->initializeBackendAuthentication();
82+
}
7883
/** @var ObjectManager $objectManager */
7984
$objectManager = GeneralUtility::makeInstance(ObjectManager::class);
8085
/** @var RandomdataService $randomdataService */

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "typo3-cms-extension",
55
"license": "GPL-3.0-or-later",
66
"require": {
7-
"typo3/cms-core": "^8.7 || ^9.5.17 || ^10.4.2",
7+
"typo3/cms-core": "^8.7 || ^9.5.17 || ^10.4.10",
88
"fzaninotto/faker": "^1.8"
99
},
1010
"replace": {

ext_emconf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
'state' => 'stable',
1010
'uploadfolder' => false,
1111
'clearCacheOnLoad' => false,
12-
'version' => '1.0.7',
12+
'version' => '1.0.8',
1313
'constraints' => [
1414
'depends' => [
1515
'typo3' => '8.7.13-10.4.99',

0 commit comments

Comments
 (0)