Skip to content

Commit ac19435

Browse files
committed
Allow setting the initial data when interacting with the form
1 parent bfd55d2 commit ac19435

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/Console/Helper/FormHelper.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,17 @@ public function __construct(
3939
* @param InputInterface $input
4040
* @param OutputInterface $output
4141
* @param array $options
42+
* @param mixed $data
4243
*
4344
* @return mixed
4445
*/
45-
public function interactUsingForm($formType, InputInterface $input, OutputInterface $output, array $options = [])
46-
{
47-
$data = null;
46+
public function interactUsingForm(
47+
$formType,
48+
InputInterface $input,
49+
OutputInterface $output,
50+
array $options = [],
51+
$data = null
52+
) {
4853
$validFormFields = [];
4954

5055
do {

0 commit comments

Comments
 (0)