Skip to content

Commit

Permalink
Merge pull request #23 from cron-eu/typo3-12
Browse files Browse the repository at this point in the history
Compatible with TYPO3 10, 11 and now also 12
  • Loading branch information
baschny authored Sep 14, 2023
2 parents 8790cfb + 6b6e4bc commit eebc848
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 7 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,24 @@ jobs:
- '8.0'
- '8.1'
- '8.2'
- '8.3'
typo3-version:
- '^10.4'
- '^11.5'
- '^12.4'
exclude:
- php-version: '8.0'
typo3-version: '^10.4'
- php-version: '8.1'
typo3-version: '^10.4'
- php-version: '8.2'
typo3-version: '^10.4'
- php-version: '8.3'
typo3-version: '^10.4'
- php-version: '7.4'
typo3-version: '^12.4'
- php-version: '8.0'
typo3-version: '^12.4'

steps:
- name: Checkout Code
Expand Down
4 changes: 2 additions & 2 deletions Configuration/TCA/Overrides/fe_users.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
defined('TYPO3_MODE') or die();
defined('TYPO3') or die();

$t = 'fe_users';
if (isset($GLOBALS['TCA'][$t])) {
Expand All @@ -19,4 +19,4 @@
$GLOBALS['TCA']['fe_users']['columns']['country']['faker'] = \GeorgRinger\Faker\Property\Country::getSettings([]);
$GLOBALS['TCA']['fe_users']['columns']['www']['faker'] = \GeorgRinger\Faker\Property\Url::getSettings([]);
}
unset($t);
unset($t);
2 changes: 1 addition & 1 deletion Configuration/TCA/Overrides/sys_category.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
defined('TYPO3_MODE') or die();
defined('TYPO3') or die();

$GLOBALS['TCA']['sys_category']['ctrl']['faker'] = true;
$GLOBALS['TCA']['sys_category']['columns']['title']['faker'] = \GeorgRinger\Faker\Property\Words::getSettings(['min' => 1, 'max' => 3]);
2 changes: 1 addition & 1 deletion Configuration/TCA/Overrides/tx_news_domain_model_news.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
defined('TYPO3_MODE') or die();
defined('TYPO3') or die();

$t = 'tx_news_domain_model_news';
if (isset($GLOBALS['TCA'][$t])) {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"GPL-2.0+"
],
"require": {
"typo3/cms-core": "^11.5",
"typo3/cms-core": "^10.4 || ^11.5 || ^12.4",
"fakerphp/faker": "^1.23"
},
"require-dev": {
Expand Down
4 changes: 2 additions & 2 deletions ext_localconf.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
defined('TYPO3_MODE') or die();
defined('TYPO3') or die();

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['faker']['properties'][] = \GeorgRinger\Faker\Property\Text::class;
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['faker']['properties'][] = \GeorgRinger\Faker\Property\Text::class;

0 comments on commit eebc848

Please sign in to comment.