Skip to content

Commit

Permalink
Merge pull request doctrine#262 from wrightlabs/patch-1
Browse files Browse the repository at this point in the history
added optional Command array as parameter for run method
  • Loading branch information
beberlei committed Jan 28, 2012
2 parents 6b1ef08 + 543c73b commit 120bad8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Doctrine/ORM/Tools/Console/ConsoleRunner.php
Expand Up @@ -28,14 +28,16 @@ class ConsoleRunner
* Run console with the given helperset.
*
* @param \Symfony\Component\Console\Helper\HelperSet $helperSet
* @param \Symfony\Component\Console\Command\Command[] $commands
* @return void
*/
static public function run(HelperSet $helperSet)
static public function run(HelperSet $helperSet, $commands = array())
{
$cli = new Application('Doctrine Command Line Interface', \Doctrine\ORM\Version::VERSION);
$cli->setCatchExceptions(true);
$cli->setHelperSet($helperSet);
self::addCommands($cli);
$cli->addCommands($commands);
$cli->run();
}

Expand Down

0 comments on commit 120bad8

Please sign in to comment.