From d3c58d83a5e6086777dfcb537f98cbfeffdbe035 Mon Sep 17 00:00:00 2001 From: Halleck45 Date: Tue, 16 Oct 2012 17:03:18 +0200 Subject: [PATCH] user can set its own commands in the cli-config.php file --- bin/doctrine.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/doctrine.php b/bin/doctrine.php index 81edf294ff4..2d50be4fbf2 100755 --- a/bin/doctrine.php +++ b/bin/doctrine.php @@ -21,6 +21,7 @@ $configFile = getcwd() . DIRECTORY_SEPARATOR . 'cli-config.php'; $helperSet = null; +$commands = array(); if (file_exists($configFile)) { if ( ! is_readable($configFile)) { trigger_error( @@ -40,4 +41,4 @@ $helperSet = ($helperSet) ?: new \Symfony\Component\Console\Helper\HelperSet(); -\Doctrine\ORM\Tools\Console\ConsoleRunner::run($helperSet); +\Doctrine\ORM\Tools\Console\ConsoleRunner::run($helperSet, $commands);