Skip to content

Commit

Permalink
[TASK] Rector with import names
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrodala committed Aug 1, 2024
1 parent b317b09 commit 8598625
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 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
4 changes: 4 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
__DIR__ . '/Tests',
])
->withRootFiles()
->withImportNames(
importShortClasses: false,
removeUnusedImports: true,
)
->withPhpSets()
->withSets([
PHPUnitSetList::PHPUNIT_100,
Expand Down

0 comments on commit 8598625

Please sign in to comment.