Skip to content

Commit

Permalink
Merge pull request #18 from vanoostrum/master
Browse files Browse the repository at this point in the history
ShellDispatcher::run compatible with Cake\Console\ShellDispatcher::run
  • Loading branch information
lorenzo authored May 23, 2017
2 parents 6a31057 + 42ae90f commit a326bed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Console/ShellDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ class ShellDispatcher extends BaseShellDispatcher
* @param array $argv The argv from PHP
* @return int The exit code of the shell process.
*/
public static function run($argv)
public static function run($argv, $extra = [])
{
$dispatcher = new static($argv);
return $dispatcher->dispatch();
return $dispatcher->dispatch($extra);
}

/**
Expand Down

0 comments on commit a326bed

Please sign in to comment.