Skip to content

Commit bfdc09b

Browse files
committed
Remove getRouteCollection leading to Yaml::parse
1 parent 14aa3a7 commit bfdc09b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Bridge/ContextInjector.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,7 @@ public function getOperationName(Request $request)
8989
return $request->getRequestUri();
9090
}
9191

92-
if (null === ($route = $this->router->getRouteCollection()->get($routeName))) {
93-
return $request->getRequestUri();
94-
}
95-
96-
return $route->getPath();
92+
return $routeName;
9793
}
9894

9995
public function onResponse(FilterResponseEvent $event)

0 commit comments

Comments
 (0)