Skip to content

Commit 3cf1487

Browse files
committed
Merge branch '5.0' into 5.1
* 5.0: Update direct_submit.rst
2 parents 0910bb9 + fa741c2 commit 3cf1487

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

form/direct_submit.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ control over when exactly your form is submitted and what data is passed to it::
1515

1616
public function new(Request $request)
1717
{
18+
$task = new Task();
1819
$form = $this->createForm(TaskType::class, $task);
1920

2021
if ($request->isMethod('POST')) {

0 commit comments

Comments
 (0)