diff --git a/ext_localconf.php b/ext_localconf.php index 10a8175..04e145d 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -2,16 +2,14 @@ declare(strict_types=1); -defined('TYPO3') or die(); - use B13\Container\Backend\Grid\ContainerGridColumn as BaseContainerGridColumn; use Evoweb\EwCollapsibleContainer\Xclass\ContainerGridColumn; use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; -call_user_func(function () { - if (ExtensionManagementUtility::isLoaded('container')) { - $GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][BaseContainerGridColumn::class] = [ - 'className' => ContainerGridColumn::class, - ]; - } -}); +defined('TYPO3') or die(); + +if (ExtensionManagementUtility::isLoaded('container')) { + $GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][BaseContainerGridColumn::class] = [ + 'className' => ContainerGridColumn::class, + ]; +}