Skip to content

Commit 5ef15b7

Browse files
committed
[HttpFoundation] Remove deprecated Request::get() in favor of using properties
1 parent 9acb72f commit 5ef15b7

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)