Skip to content

Commit 768bf6c

Browse files
committed
Merge branch '7.4' into 8.0
* 7.4: [HttpFoundation] Remove deprecated Request::get() in favor of using properties
2 parents 8a424e0 + dc0ebb2 commit 768bf6c

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
@@ -633,7 +633,7 @@ else that can be used to create a working example::
633633
$routes->add('hello', new Route('/hello/{name}', [
634634
'_controller' => function (Request $request): Response {
635635
return new Response(
636-
sprintf("Hello %s", $request->get('name'))
636+
sprintf("Hello %s", $request->attributes->get('name'))
637637
);
638638
}]
639639
));

0 commit comments

Comments
 (0)