8000 Changed wrong method call. · symfony/symfony-docs@a68de6d · GitHub
[go: up one dir, main page]

Skip to content

Commit a68de6d

Browse files
cmfcmfweaverryan
authored andcommitted
Changed wrong method call.
1 parent b00573c commit a68de6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/http_kernel/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ argument as follows::
658658
// create some other request manually as needed
659659
$request = new Request();
660660
// for example, possibly set its _controller manually
661-
$request->attributes->add('_controller', '...');
661+
$request->attributes->set('_controller', '...');
662662

663663
$response = $kernel->handle($request, HttpKernelInterface::SUB_REQUEST);
664664
// do something with this response

0 commit comments

Comments
 (0)
0