There was an error while loading. Please reload this page.
1 parent 7df249b commit 628ee47Copy full SHA for 628ee47
1 file changed
Configuration/Services.php
@@ -19,6 +19,7 @@
19
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
20
use TYPO3\CMS\Dashboard\Widgets\ListWidget;
21
use TYPO3\CMS\Dashboard\Widgets\NumberWithIconWidget;
22
+use TYPO3\CMS\Workspaces\Command\AutoPublishCommand;
23
use TYPO3\CMS\Workspaces\Event\AfterCompiledCacheableDataForWorkspaceEvent;
24
25
return function (ContainerConfigurator $configurator, ContainerBuilder $containerBuilder) {
@@ -63,8 +64,8 @@
63
64
'width' => 'small',
65
]);
66
}
-
67
- if (ExtensionManagementUtility::isLoaded('workspaces')) {
+
68
+ if ($containerBuilder->hasDefinition(AutoPublishCommand::class)) {
69
$services->set('calendarize.event_listener.hide_indexes_in_workspace_module')
70
->class(HideIndexesInWorkspaceModuleEventListener::class)
71
->tag('event.listener', [
0 commit comments