Skip to content

Commit ccdfcb0

Browse files
committed
[TASK] TYPO3 13 compatibility
1 parent 793c9fb commit ccdfcb0

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

Classes/EventListener/ModifyDatabaseQueryForContentEventListener.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
namespace HauerHeinrich\HhSlider\EventListener;
1212

13+
use \TYPO3\CMS\Core\Database\Connection;
1314
// use \TYPO3\CMS\Extbase\Utility\DebuggerUtility;
1415
use \TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForContentEvent;
1516

@@ -23,7 +24,7 @@ public function modify(ModifyDatabaseQueryForContentEvent $event): void {
2324
// Only hide elements which are inline, allowing for standard
2425
// elements to show
2526
$event->getQueryBuilder()->andWhere(
26-
$event->getQueryBuilder()->expr()->lte('tx_hhslider_child_content_parent', $event->getQueryBuilder()->createNamedParameter(0, \PDO::PARAM_INT))
27+
$event->getQueryBuilder()->expr()->lte('tx_hhslider_child_content_parent', $event->getQueryBuilder()->createNamedParameter(0, Connection::PARAM_INT))
2728
);
2829
}
2930
}

Classes/EventListener/ModifyDatabaseQueryForRecordListingEventListener.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
namespace HauerHeinrich\HhSlider\EventListener;
1212

13+
use \TYPO3\CMS\Core\Database\Connection;
1314
// use \TYPO3\CMS\Extbase\Utility\DebuggerUtility;
1415
use \TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent;
1516

@@ -23,7 +24,7 @@ public function modify(ModifyDatabaseQueryForRecordListingEvent $event): void {
2324
// Only hide elements which are inline, allowing for standard
2425
// elements to show
2526
$event->getQueryBuilder()->andWhere(
26-
$event->getQueryBuilder()->expr()->lte('tx_hhslider_child_content_parent', $event->getQueryBuilder()->createNamedParameter(0, \PDO::PARAM_INT))
27+
$event->getQueryBuilder()->expr()->lte('tx_hhslider_child_content_parent', $event->getQueryBuilder()->createNamedParameter(0, Connection::PARAM_INT))
2728
);
2829
}
2930
}

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"source": "https://github.com/Hauer-Heinrich/hh_slider",
1616
"docs": "https://github.com/Hauer-Heinrich/hh_slider/blob/master/README.md"
1717
},
18-
"version": "0.5.1",
18+
"version": "0.6.0",
1919
"license": ["MIT"],
2020
"keywords": [
2121
"TYPO3 CMS",
@@ -27,10 +27,10 @@
2727
"typo3-ter/hh-slider": "self.version"
2828
},
2929
"require": {
30-
"typo3/cms-core": "^12.2.0",
31-
"typo3/cms-fluid": "^12.2.0",
32-
"typo3/cms-frontend": "^12.2.0",
33-
"typo3/cms-fluid-styled-content": "^12.2.0"
30+
"typo3/cms-core": "^12.4.0 || ^13.4.0",
31+
"typo3/cms-fluid": "^12.4.0 || ^13.4.0",
32+
"typo3/cms-frontend": "^12.4.0 || ^13.4.0",
33+
"typo3/cms-fluid-styled-content": "^12.4.0 || ^13.4.0"
3434
},
3535
"autoload": {
3636
"psr-4": {

ext_emconf.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
'title' => 'Hauer-Heinrich - Slider (tiny-slider)',
1515
'description' => 'Hauer-Heinrich - Image and Content Slider',
1616
'category' => 'fe',
17-
'version' => '0.5.1',
17+
'version' => '0.6.0',
1818
'state' => 'stable',
1919
'uploadfolder' => false,
2020
'clearcacheonload' => false,
@@ -23,8 +23,8 @@
2323
'author_company' => 'www.hauer-heinrich.de',
2424
'constraints' => [
2525
'depends' => [
26-
'typo3' => '12.2.0-12.4.99',
27-
'fluid_styled_content' => '12.2.0-12.4.99',
26+
'typo3' => '12.4.0-13.4.99',
27+
'fluid_styled_content' => '12.4.0-13.4.99',
2828
],
2929
'conflicts' => [
3030
],

0 commit comments

Comments
 (0)