Skip to content

Commit 3f4d39b

Browse files
author
markus-moser
committed
[SegmentBuilder] move segmentBuilderMaintenance execution to cmf specific maintenance console command - fixes #15
1 parent b1f1727 commit 3f4d39b

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/Event/MaintenanceEventListener.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ class MaintenanceEventListener
2121
{
2222
public function onMaintenance(\Pimcore\Event\System\MaintenanceEvent $e)
2323
{
24-
\Pimcore::getContainer()->get(SegmentBuilderExecutorInterface::class)->executeSegmentBuilderMaintenance();
2524
\Pimcore::getContainer()->get('cmf.customer_exporter_manager')->cleanupExportTmpData();
2625
\Pimcore::getContainer()->get('cmf.customer_provider.object_naming_scheme')->cleanupEmptyFolders();
2726
}

src/Resources/config/services.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ services:
9696
CustomerManagementFrameworkBundle\Maintenance\MaintenanceWorker:
9797
arguments:
9898
$serviceConfiguration:
99+
'executeSegmentBuilderMaintenance': '@CustomerManagementFrameworkBundle\SegmentManager\SegmentBuilderExecutor\SegmentBuilderExecutorInterface'
99100
'processQueue': '@CustomerManagementFrameworkBundle\SegmentAssignment\Indexer\IndexerInterface'
100101

101102
cmf.logger:

0 commit comments

Comments
 (0)