File tree Expand file tree Collapse file tree 2 files changed +20
-20
lines changed Expand file tree Collapse file tree 2 files changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,11 @@ public static function getSubscribedEvents()
29
29
];
30
30
}
31
31
32
+ public function onCommand ()
33
+ {
34
+ return $ this ->inject ();
35
+ }
36
+
32
37
public function inject ()
33
38
{
34
39
if (null === ($ context = $ this ->extractor ->extract ())) {
@@ -39,11 +44,6 @@ public function inject()
39
44
return $ this ;
40
45
}
41
46
42
- public function onCommand ()
43
- {
44
- return $ this ->inject ();
45
- }
46
-
47
47
public function onRequest ()
48
48
{
49
49
return $ this ->inject ();
Original file line number Diff line number Diff line change @@ -39,21 +39,6 @@ public static function getSubscribedEvents()
39
39
];
40
40
}
41
41
42
- public function getOperationName (Request $ request )
43
- {
44
- if (null !== ($ fragment = $ request ->attributes ->get ('is_fragment ' ))) {
45
- return ($ controller = $ request ->attributes ->get ('_controller ' , null ))
46
- ? sprintf ('fragment.%s ' , $ controller )
47
- : 'fragment ' ;
48
- }
49
-
50
- if (null === ($ routeName = $ request ->attributes ->get ('_route ' , null ))) {
51
- return $ request ->getRequestUri ();
52
- }
53
-
54
- return $ routeName ;
55
- }
56
-
57
42
public function onResponse (FilterResponseEvent $ event )
58
43
{
59
44
if ($ this ->spans ->isEmpty ()) {
@@ -100,4 +85,19 @@ public function onRequest(GetResponseEvent $event)
100
85
101
86
return $ this ;
102
87
}
88
+
89
+ public function getOperationName (Request $ request )
90
+ {
91
+ if (null !== ($ fragment = $ request ->attributes ->get ('is_fragment ' ))) {
92
+ return ($ controller = $ request ->attributes ->get ('_controller ' , null ))
93
+ ? sprintf ('fragment.%s ' , $ controller )
94
+ : 'fragment ' ;
95
+ }
96
+
97
+ if (null === ($ routeName = $ request ->attributes ->get ('_route ' , null ))) {
98
+ return $ request ->getRequestUri ();
99
+ }
100
+
101
+ return $ routeName ;
102
+ }
103
103
}
You can’t perform that action at this time.
0 commit comments