mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-22 23:36:11 +01:00
TASK: Use php 7 anonymous function call
This commit is contained in:
parent
f95723fff7
commit
97160dac91
2 changed files with 5 additions and 7 deletions
|
@ -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');
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue