From 543c73bc05170fc07210d7545631dfa2788c53c4 Mon Sep 17 00:00:00 2001 From: John Wright Date: Mon, 16 Jan 2012 21:01:44 -0800 Subject: [PATCH] added optional command array as parameter for run method --- lib/Doctrine/ORM/Tools/Console/ConsoleRunner.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/Tools/Console/ConsoleRunner.php b/lib/Doctrine/ORM/Tools/Console/ConsoleRunner.php index 6907dde39..ffb839eee 100644 --- a/lib/Doctrine/ORM/Tools/Console/ConsoleRunner.php +++ b/lib/Doctrine/ORM/Tools/Console/ConsoleRunner.php @@ -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(); }