You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: EventListener/ProfilerListener.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ public function __construct(Profiler $profiler, RequestMatcherInterface $matcher
53
53
// Prevent the deprecation notice to be triggered all the time.
54
54
// The onKernelRequest() method fires some logic only when the
55
55
// RequestStack instance is not provided as a dependency.
56
-
trigger_error('The '.__CLASS__.'::onKernelRequest method is deprecated since version 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
56
+
trigger_error('Since version 2.4, the '.__METHOD__.' method must accept a RequestStack instance to get the request instead of using the '.__CLASS__.'::onKernelRequest method that will be removed in 3.0.', E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: EventListener/RouterListener.php
+13-3Lines changed: 13 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,10 @@ public function __construct($matcher, RequestContext $context = null, LoggerInte
67
67
thrownew \InvalidArgumentException('You must either pass a RequestContext or the matcher must implement RequestContextAwareInterface.');
68
68
}
69
69
70
+
if (!$requestStackinstanceof RequestStack) {
71
+
trigger_error('The '.__METHOD__.' method now requires a RequestStack instance as '.__CLASS__.'::setRequest method will not be supported anymore in 3.0.');
0 commit comments