Skip to content

Commit e1334f5

Browse files
committed
Fix profiler tab not appearing: use 'data_collector' tag not 'kernel.data_collector'
Symfony's ProfilerPass scans for the 'data_collector' tag (no kernel. prefix). The 'kernel.data_collector' alias is accepted by the container but never processed by ProfilerPass, so the collector was never added to the profiler and the CWA tab did not appear.
1 parent 833b146 commit e1334f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Resources/config/services.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1817,7 +1817,7 @@
18171817
->set('silverback.api_components.data_collector')
18181818
->class(CwaDataCollector::class)
18191819
->args([new Reference(CwaCollectorData::class)])
1820-
->tag('kernel.data_collector', [
1820+
->tag('data_collector', [
18211821
'template' => '@SilverbackApiComponents/Collector/cwa.html.twig',
18221822
'id' => 'cwa',
18231823
]);

0 commit comments

Comments
 (0)