Skip to content

Commit

Permalink
bug #6787 Fix reference to output object (micheal)
Browse files Browse the repository at this point in the history
This PR was submitted for the 3.1 branch but it was merged into the 2.7 branch instead (closes #6787).

Discussion
----------

Fix reference to output object

`$this` does not have a `writeln` method on it, but `$output` does.

Commits
-------

4deb3f0 Fix reference to output object
  • Loading branch information
weaverryan committed Aug 2, 2016
2 parents c1d62da + 4deb3f0 commit 999527a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion console.rst
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Use input options or arguments to pass information to the command::
]);

// retrieve the argument value using getArgument()
$this->writeln('Username: '.$input->getArgument('username'));
$output->writeln('Username: '.$input->getArgument('username'));
}

Now, you can pass the username to the command:
Expand Down

0 comments on commit 999527a

Please sign in to comment.