mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-27 01:16: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
|
<?php
|
||||||
|
|
||||||
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
|
(function ($extension, $table) {
|
||||||
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
||||||
call_user_func(function ($extension, $table) {
|
|
||||||
ExtensionUtility::registerPlugin(
|
|
||||||
'Codappix.' . $extension,
|
'Codappix.' . $extension,
|
||||||
'Search',
|
'Search',
|
||||||
'LLL:EXT:search_core/Resources/Private/Language/locallang_be.xlf:plugin.search.title',
|
'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';
|
$GLOBALS['TCA'][$table]['types']['list']['subtypes_excludelist']['searchcore_search'] = 'recursive,pages';
|
||||||
}, 'search_core', 'tt_content');
|
})('search_core', 'tt_content');
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
call_user_func(function ($extension, $configuration) {
|
(function ($extension, $configuration) {
|
||||||
if (is_string($configuration)) {
|
if (is_string($configuration)) {
|
||||||
$configuration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$extension]);
|
$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
|
\Codappix\SearchCore\Domain\Search\CachedSearchService::class
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}, $_EXTKEY, $_EXTCONF);
|
})($_EXTKEY, $_EXTCONF);
|
||||||
|
|
Loading…
Reference in a new issue