Skip to content

Commit

Permalink
Merge pull request #227 from pagemachine/rector-config-updates
Browse files Browse the repository at this point in the history
Update Rector config
  • Loading branch information
mbrodala authored Aug 1, 2024
2 parents 52892b5 + 8598625 commit f1df924
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
7 changes: 5 additions & 2 deletions ext_localconf.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
<?php

use Pagemachine\Formlog\Form\Element\JSONDataElement;
use TYPO3\CMS\Scheduler\Task\TableGarbageCollectionTask;

defined('TYPO3') or die();

$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1490193269] = [
'nodeName' => 'jsonData',
'priority' => 10,
'class' => \Pagemachine\Formlog\Form\Element\JSONDataElement::class,
'class' => JSONDataElement::class,
];

$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:form/Resources/Private/Language/Database.xlf'][1519643592] = 'EXT:formlog/Resources/Private/Language/Database.xlf';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['de']['EXT:form/Resources/Private/Language/Database.xlf'][1519643592] = 'EXT:formlog/Resources/Private/Language/de.Database.xlf';

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\TYPO3\CMS\Scheduler\Task\TableGarbageCollectionTask::class]['options']['tables']['tx_formlog_entries'] = [
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][TableGarbageCollectionTask::class]['options']['tables']['tx_formlog_entries'] = [
'dateField' => 'tstamp',
'expirePeriod' => 180,
];
10 changes: 7 additions & 3 deletions ext_tables.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
<?php

use Pagemachine\Formlog\Controller\Backend\FormLogController;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;

defined('TYPO3') or die();

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_formlog_entries');
ExtensionManagementUtility::allowTableOnStandardPages('tx_formlog_entries');

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
ExtensionUtility::registerModule(
'Formlog',
'web',
'list',
'after:FormFormbuilder',
[
\Pagemachine\Formlog\Controller\Backend\FormLogController::class => 'index, export',
FormLogController::class => 'index, export',
],
[
'access' => 'user,group',
Expand Down
11 changes: 6 additions & 5 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@

use Rector\Config\RectorConfig;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Set\ValueObject\LevelSetList;
use Ssch\TYPO3Rector\Set\Typo3SetList;

return RectorConfig::configure()
->withPaths([
__DIR__ . '/Classes',
__DIR__ . '/Tests',
])
->withRootFiles()
->withImportNames(
importShortClasses: false,
removeUnusedImports: true,
)
->withPhpSets()
->withSets([
LevelSetList::UP_TO_PHP_81,
PHPUnitSetList::PHPUNIT_100,
Typo3SetList::TYPO3_11,
])
->withSkip([
\Rector\Php74\Rector\LNumber\AddLiteralSeparatorToNumberRector::class,
])
;

0 comments on commit f1df924

Please sign in to comment.