8000 bug #3891 Fixed wrong method call. (cmfcmf) · symfony/symfony-docs@8257be9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8257be9

Browse files
committed
bug #3891 Fixed wrong method call. (cmfcmf)
This PR was submitted for the 2.4 branch but it was merged into the 2.3 branch instead (closes #3891). Discussion ---------- Fixed wrong method call. | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | --- | Fixed tickets | --- Commits ------- c1dce1e Changed wrong method call.
2 parents b00573c + a68de6d commit 8257be9

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