Skip to content

Commit 1e4c7d9

Browse files
committed
[FrameworkBundle] Make debug:event-dispatcher search case insensitive
1 parent 896f4a6 commit 1e4c7d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/EventDispatcherDebugCommand.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
123123
private function searchForEvent(EventDispatcherInterface $dispatcher, $needle): array
124124
{
125125
$output = [];
126+
$lcNeedle = strtolower($needle);
126127
$allEvents = array_keys($dispatcher->getListeners());
127128
foreach ($allEvents as $event) {
128-
if (str_contains($event, $needle)) {
129+
if (str_contains(strtolower($event), $lcNeedle)) {
129130
$output[] = $event;
130131
}
131132
}

0 commit comments

Comments
 (0)