Skip to content

Commit

Permalink
Allow handle method for consistency across "handlers".
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Dec 26, 2014
1 parent d75eab8 commit 970836c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Illuminate/Console/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,14 @@ public function run(InputInterface $input, OutputInterface $output)
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
return $this->laravel->call([$this, 'fire']);
if (method_exists($this, 'handle'))
{
return $this->laravel->call([$this, 'handle']);
}
else
{
return $this->laravel->call([$this, 'fire']);
}
}

/**
Expand Down

0 comments on commit 970836c

Please sign in to comment.