We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca696ad commit 8140425Copy full SHA for 8140425
src/Bridge/ContextInjector.php
@@ -76,9 +76,16 @@ public static function getSubscribedEvents()
76
77
public function getOperationName(Request $request)
78
{
79
+ if (null !== ($fragment = $request->attributes->get('is_fragment'))) {
80
+ return ($controller = $request->attributes->get('_controller', null))
81
+ ? 'fragment'
82
+ : sprintf('fragment.%s', $controller);
83
+ }
84
+
85
if (null === ($routeName = $request->attributes->get('_route', null))) {
86
return $request->getRequestUri();
87
}
88
89
if (null === ($route = $this->router->getRouteCollection()->get($routeName))) {
90
91
0 commit comments