TASK: Use php 7 anonymous function call

This commit is contained in:
Daniel Siepmann 2018-12-29 19:24:07 +01:00
parent f95723fff7
commit 97160dac91
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
2 changed files with 5 additions and 7 deletions

View file

@ -1,9 +1,7 @@
<?php
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
call_user_func(function ($extension, $table) {
ExtensionUtility::registerPlugin(
(function ($extension, $table) {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'Codappix.' . $extension,
'Search',
'LLL:EXT:search_core/Resources/Private/Language/locallang_be.xlf:plugin.search.title',
@ -11,4 +9,4 @@ call_user_func(function ($extension, $table) {
);
$GLOBALS['TCA'][$table]['types']['list']['subtypes_excludelist']['searchcore_search'] = 'recursive,pages';
}, 'search_core', 'tt_content');
})('search_core', 'tt_content');

View file

@ -1,6 +1,6 @@
<?php
call_user_func(function ($extension, $configuration) {
(function ($extension, $configuration) {
if (is_string($configuration)) {
$configuration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$extension]);
}
@ -68,4 +68,4 @@ call_user_func(function ($extension, $configuration) {
\Codappix\SearchCore\Domain\Search\CachedSearchService::class
);
}
}, $_EXTKEY, $_EXTCONF);
})($_EXTKEY, $_EXTCONF);