Skip to content

Commit

Permalink
Upgrade to TYPO3 11.5 (#80)
Browse files Browse the repository at this point in the history
* #79 Allow install in T3 11.5 and migrate labels
* #79 Prepare release 1.9.0
  • Loading branch information
digedag authored Jan 27, 2023
1 parent 099ddb7 commit ddfc03b
Show file tree
Hide file tree
Showing 12 changed files with 1,143 additions and 486 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Changes
-------

v1.9.0 (27.01.2023)
* Allow install in TYPO3 11.5
* Some bugfixes

v1.8.2 (26.06.2022)
* Fixed dummy teams visible in league table
* Enable automatic TER release
Expand Down
194 changes: 97 additions & 97 deletions Configuration/Flexform/plugin_competition.xml

Large diffs are not rendered by default.

152 changes: 76 additions & 76 deletions Configuration/Flexform/plugin_report.xml

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions Configuration/PageTS/modWizards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ mod.wizards {
elements {
t3sports_competition {
iconIdentifier = t3sports_plugin
title = LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xml:plugin.competition.label
description = LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xml:plugin.competition.description
title = LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xlf:plugin.competition.label
description = LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xlf:plugin.competition.description
tt_content_defValues {
CType = list
list_type = tx_cfcleaguefe_competition
}
}
t3sports_report {
iconIdentifier = t3sports_plugin
title = LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xml:plugin.report.label
description = LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xml:plugin.report.description
title = LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xlf:plugin.report.label
description = LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xlf:plugin.report.description
tt_content_defValues {
CType = list
list_type = tx_cfcleaguefe_report
Expand Down
4 changes: 2 additions & 2 deletions Configuration/TCA/Overrides/tt_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

tx_rnbase_util_Extensions::addPlugin(
[
'LLL:EXT:'.$extKey.'/Resources/Private/Language/locallang_db.xml:plugin.competition.label',
'LLL:EXT:'.$extKey.'/Resources/Private/Language/locallang_db.xlf:plugin.competition.label',
'tx_cfcleaguefe_competition',
],
'list_type',
Expand Down Expand Up @@ -62,7 +62,7 @@
*/
tx_rnbase_util_Extensions::addPlugin(
[
'LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xml:plugin.report.label',
'LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xlf:plugin.report.label',
'tx_cfcleaguefe_report',
],
'list_type',
Expand Down
536 changes: 536 additions & 0 deletions Resources/Private/Language/de.locallang_db.xlf

Large diffs are not rendered by default.

404 changes: 404 additions & 0 deletions Resources/Private/Language/locallang_db.xlf

Large diffs are not rendered by default.

286 changes: 0 additions & 286 deletions Resources/Private/Language/locallang_db.xml

This file was deleted.

6 changes: 3 additions & 3 deletions Tests/Unit/PHP/Table/Football/TableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ public function testLeagueTableWithDummyTeam()
// T4 - 0:4 0:5

$expected = [
0 => ['teamId' => 't_13', 'points' => 4, 'goals1' => 3, 'goals2' => 0, 'goals_diff' => 3,],
1 => ['teamId' => 't_11', 'points' => 2, 'goals1' => 3, 'goals2' => 1, 'goals_diff' => 2,],
2 => ['teamId' => 't_14', 'points' => 0, 'goals1' => 0, 'goals2' => 5, 'goals_diff' => -5,],
0 => ['teamId' => 't_13', 'points' => 4, 'goals1' => 3, 'goals2' => 0, 'goals_diff' => 3],
1 => ['teamId' => 't_11', 'points' => 2, 'goals1' => 3, 'goals2' => 1, 'goals_diff' => 2],
2 => ['teamId' => 't_14', 'points' => 0, 'goals1' => 0, 'goals2' => 5, 'goals_diff' => -5],
];
foreach ($scoreLine as $idx => $score) {
$this->assertEquals($expected[$idx]['teamId'], $score['team']->getTeamId());
Expand Down
9 changes: 4 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@
"typo3-ter/cfc-league-fe" : "self.version"
},
"require" : {
"typo3/cms-core": "^8.7 || ^9.5.17 || ^10.4.3",
"digedag/cfc-league" : "~1.8.0",
"digedag/rn-base" : "~1.15.3"
"typo3/cms-core": "^8.7 || ^9.5 || ^10.4 || ^11.5",
"digedag/cfc-league" : "~1.9.0",
"digedag/rn-base" : "~1.16.0"
},
"require-dev": {
"namelesscoder/typo3-repository-client": "^1.2",
"nimut/testing-framework": "^1.1 || ^2.0 || ^4.0 || ^5.0",
"mikey179/vfsstream": "^1.4 || ^1.6",
"phpunit/phpunit": "^6.5.14 || ^7.5.20",
Expand Down Expand Up @@ -85,7 +84,7 @@
]
},
"branch-alias": {
"dev-master": "1.8.x-dev"
"dev-master": "1.9.x-dev"
}
}
}
6 changes: 3 additions & 3 deletions ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
'title' => 'T3sports FE',
'description' => 'FE-Plugins von T3sports. Liefert u.a. die Views Spielplan, Spielbericht, Tabellen, Team- und Spieleransicht. FE plugins for T3sports. Contains views for matchtable, leaguetable, matchreport, team and player reports and many more. Requires PHP5!',
'category' => 'plugin',
'version' => '1.8.2',
'version' => '1.9.0',
'dependencies' => 'rn_base,cfc_league',
'module' => '',
'state' => 'beta',
Expand All @@ -28,8 +28,8 @@
'depends' => [
'typo3' => '8.7.0-10.4.99',
'php' => '7.1.0-8.9.99',
'rn_base' => '1.15.0-0.0.0',
'cfc_league' => '1.8.0-0.0.0',
'rn_base' => '1.16.0-0.0.0',
'cfc_league' => '1.9.0-0.0.0',
],
'conflicts' => [],
'suggests' => [],
Expand Down
20 changes: 10 additions & 10 deletions ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cfc_league_fe']['matchMarker_afterSubst'][] = \System25\T3sports\Hook\MatchHistoryHook::class.'->addMatches';
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cfc_league_fe']['matchMarker_afterSubst'][] = \System25\T3sports\Hook\MatchChartHook::class.'->addChart';

System25\T3sports\Utility\Misc::registerTableStrategy('default', 'LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xml:tablestrategy_default', System25\T3sports\Table\Football\Comparator::class);
System25\T3sports\Utility\Misc::registerTableStrategy('head2head', 'LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xml:tablestrategy_head2head', System25\T3sports\Table\Football\ComparatorH2H::class);
System25\T3sports\Utility\Misc::registerTableStrategy('pointpermatch', 'LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xml:tablestrategy_pointpermatch', System25\T3sports\Table\ComparatorPPM::class);
System25\T3sports\Utility\Misc::registerTableStrategy('volleyball3', 'LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xml:tablestrategy_volleyball_3point', System25\T3sports\Table\Volleyball\Comparator3Point::class);
System25\T3sports\Utility\Misc::registerTableStrategy('volleyball2', 'LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xml:tablestrategy_volleyball_2point', System25\T3sports\Table\Volleyball\Comparator::class);
System25\T3sports\Utility\Misc::registerTableStrategy('default', 'LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xlf:tablestrategy_default', System25\T3sports\Table\Football\Comparator::class);
System25\T3sports\Utility\Misc::registerTableStrategy('head2head', 'LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xlf:tablestrategy_head2head', System25\T3sports\Table\Football\ComparatorH2H::class);
System25\T3sports\Utility\Misc::registerTableStrategy('pointpermatch', 'LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xlf:tablestrategy_pointpermatch', System25\T3sports\Table\ComparatorPPM::class);
System25\T3sports\Utility\Misc::registerTableStrategy('volleyball3', 'LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xlf:tablestrategy_volleyball_3point', System25\T3sports\Table\Volleyball\Comparator3Point::class);
System25\T3sports\Utility\Misc::registerTableStrategy('volleyball2', 'LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xlf:tablestrategy_volleyball_2point', System25\T3sports\Table\Volleyball\Comparator::class);

Sys25\RnBase\Utility\Extensions::addService(
$_EXTKEY,
'cfcleague_statistics' /* sv type */ ,
'tx_cfcleaguefe_sv2_PlayerStatistics' /* sv key */ ,
[
'title' => 'LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xml:plugin.competition.flexform.statistics.type.player', 'description' => 'Statistical data about players', 'subtype' => 'player',
'title' => 'LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xlf:plugin.competition.flexform.statistics.type.player', 'description' => 'Statistical data about players', 'subtype' => 'player',
'available' => true, 'priority' => 50, 'quality' => 50,
'os' => '', 'exec' => '',
'className' => 'System25\T3sports\Statistics\Service\PlayerStatistics',
Expand All @@ -50,7 +50,7 @@
'cfcleague_statistics' /* sv type */ ,
'tx_cfcleaguefe_sv2_ScorerStatistics' /* sv key */ ,
[
'title' => 'LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xml:plugin.competition.flexform.statistics.type.scorerlist', 'description' => 'A list of best scorer', 'subtype' => 'scorerlist',
'title' => 'LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xlf:plugin.competition.flexform.statistics.type.scorerlist', 'description' => 'A list of best scorer', 'subtype' => 'scorerlist',
'available' => true, 'priority' => 50, 'quality' => 50,
'os' => '', 'exec' => '',
'className' => 'System25\T3sports\Statistics\Service\ScorerStatistics',
Expand All @@ -62,7 +62,7 @@
'cfcleague_statistics' /* sv type */ ,
'tx_cfcleaguefe_sv2_AssistStatistics' /* sv key */ ,
[
'title' => 'LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xml:plugin.competition.flexform.statistics.type.assistlist', 'description' => 'A list of best assists', 'subtype' => 'assistlist',
'title' => 'LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xlf:plugin.competition.flexform.statistics.type.assistlist', 'description' => 'A list of best assists', 'subtype' => 'assistlist',
'available' => true, 'priority' => 50, 'quality' => 50,
'os' => '', 'exec' => '',
'className' => 'System25\T3sports\Statistics\Service\AssistStatistics',
Expand All @@ -74,7 +74,7 @@
'cfcleague_statistics' /* sv type */ ,
'tx_cfcleaguefe_sv2_PlayerSummaryStatistics' /* sv key */ ,
[
'title' => 'LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xml:plugin.competition.flexform.statistics.type.playersummary', 'description' => 'Some additional data of player statistics', 'subtype' => 'playersummary',
'title' => 'LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xlf:plugin.competition.flexform.statistics.type.playersummary', 'description' => 'Some additional data of player statistics', 'subtype' => 'playersummary',
'available' => true, 'priority' => 50, 'quality' => 50,
'os' => '', 'exec' => '',
'className' => 'System25\T3sports\Statistics\Service\PlayerSummaryStatistics',
Expand All @@ -86,7 +86,7 @@
'cfcleague_statistics' /* sv type */ ,
'tx_cfcleaguefe_sv2_VisitorStatistics' /* sv key */ ,
[
'title' => 'LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xml:plugin.competition.flexform.statistics.type.visitors', 'description' => 'Count visitors of all teams', 'subtype' => 'visitors',
'title' => 'LLL:EXT:cfc_league_fe/Resources/Private/Language/locallang_db.xlf:plugin.competition.flexform.statistics.type.visitors', 'description' => 'Count visitors of all teams', 'subtype' => 'visitors',
'available' => true, 'priority' => 50, 'quality' => 50,
'os' => '', 'exec' => '',
'className' => 'System25\T3sports\Statistics\Service\VisitorStatistics',
Expand Down

0 comments on commit ddfc03b

Please sign in to comment.