Skip to content

Commit

Permalink
Merge pull request #482 from Halleck45/cli-customizable
Browse files Browse the repository at this point in the history
user can set its own commands in the cli-config.php file
  • Loading branch information
beberlei committed Nov 12, 2012
2 parents 79315cb + d3c58d8 commit a0e8ca1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/doctrine.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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);

0 comments on commit a0e8ca1

Please sign in to comment.