From a8f04a81ef2346e9d277d9a4af87cd28fede0fcf Mon Sep 17 00:00:00 2001 From: micheal Date: Fri, 29 Jul 2016 19:20:48 -0700 Subject: [PATCH] Fix reference to output object `$this` does not have a `writeln` method on it, but `$output` does. --- console.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console.rst b/console.rst index fb1a186d146..1513a4bea00 100644 --- a/console.rst +++ b/console.rst @@ -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: