Skip to content

Commit dc0ebb2

Browse files
committed
minor #21469 [HttpFoundation] Remove deprecated Request::get() in favor of using properties (alamirault)
This PR was merged into the 7.4 branch. Discussion ---------- [HttpFoundation] Remove deprecated Request::get() in favor of using properties Fix #21463 `Request::get()` was not documented, so I think there is no deprecation directive to add ? Commits ------- 5ef15b7 [HttpFoundation] Remove deprecated Request::get() in favor of using properties
2 parents f0c630b + 5ef15b7 commit dc0ebb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/http_kernel.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ else that can be used to create a working example::
639639
$routes->add('hello', new Route('/hello/{name}', [
640640
'_controller' => function (Request $request): Response {
641641
return new Response(
642-
sprintf("Hello %s", $request->get('name'))
642+
sprintf("Hello %s", $request->attributes->get('name'))
643643
);
644644
}]
645645
));

0 commit comments

Comments
 (0)