Skip to content

Commit

Permalink
[5.6] Add $outputBuffer argument (#22463)
Browse files Browse the repository at this point in the history
* Add $outputBuffer argument

* Add $outputBuffer argument
  • Loading branch information
recca0120 authored and taylorotwell committed Dec 18, 2017
1 parent cfc3b68 commit 44c36a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/Illuminate/Contracts/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
interface Application
{
/**
* Call a console application command.
* Run an Artisan console command by name.
*
* @param string $command
* @param array $parameters
* @param \Symfony\Component\Console\Output\OutputInterface $outputBuffer
* @return int
*/
public function call($command, array $parameters = []);
public function call($command, array $parameters = [], $outputBuffer = null);

/**
* Get the output from the last command.
Expand Down
3 changes: 2 additions & 1 deletion src/Illuminate/Contracts/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ public function handle($input, $output = null);
*
* @param string $command
* @param array $parameters
* @param \Symfony\Component\Console\Output\OutputInterface $outputBuffer
* @return int
*/
public function call($command, array $parameters = []);
public function call($command, array $parameters = [], $outputBuffer = null);

/**
* Queue an Artisan console command by name.
Expand Down

0 comments on commit 44c36a9

Please sign in to comment.