我使用TYPO3 8.7.22
我创建了一个扩展程序,用于注册新图标。
ext_localconf.php
$boot = function () {
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
\TYPO3\CMS\Core\Imaging\IconRegistry::class
);
$iconRegistry->registerIcon(
'actions-view',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:dashboard/Resources/Public/Icons/actions-view.svg']
);
$iconRegistry->registerIcon(
'actions-document-view',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:dashboard/Resources/Public/Icons/actions-document-view.svg']
);
};
$boot();
现在我只想为特定的后端用户组注册它们,但是该功能将被缓存,并且我无法再次检查该用户组。
我该如何解决?