Skip to content

Commit 0462823

Browse files
author
Sander De la Marche
committed
Fix bug in BreadcrumbListener
1 parent 8865856 commit 0462823

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EventListener/BreadcrumbListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ private function getRouteInformation(string $name): ?array
215215
* In the case of multiple methods defined per controller,
216216
* explode the controller name and method
217217
*/
218-
if (strpos('::', $route->getDefault('controller')) > 0) {
218+
if (strpos($route->getDefault('_controller'), '::') > 0) {
219219
$chunk = explode('::', $route->getDefault('_controller'));
220220
$controller = $chunk[0];
221221
$method = $chunk[1];

0 commit comments

Comments
 (0)