Skip to content

Commit 3a31aad

Browse files
committed
minor #10200 action_method is missing $task variable (TomasVotruba)
This PR was submitted for the 4.1 branch but it was merged into the 2.8 branch instead (closes #10200). Discussion ---------- action_method is missing $task variable It's not clear from the docs, but user has to first create the `$task` variable. In the second example bellow it's more clear thanks to `// ...`. This makes it a bit more explicit here as well. Commits ------- 5ada0ef action_method is missing $task variable
2 parents 217e429 + 5ada0ef commit 3a31aad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

form/action_method.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ form, you can use ``setAction()`` and ``setMethod()``:
2727
{
2828
public function newAction()
2929
{
30+
// ...
31+
3032
$form = $this->createFormBuilder($task)
3133
->setAction($this->generateUrl('target_route'))
3234
->setMethod('GET')

0 commit comments

Comments
 (0)