1
0
mirror of synced 2025-01-31 04:21:44 +03:00

Merge pull request #482 from Halleck45/cli-customizable

user can set its own commands in the cli-config.php file
This commit is contained in:
Benjamin Eberlei 2012-11-12 03:13:34 -08:00
commit a0e8ca128c

View File

@ -21,6 +21,7 @@
$configFile = getcwd() . DIRECTORY_SEPARATOR . 'cli-config.php'; $configFile = getcwd() . DIRECTORY_SEPARATOR . 'cli-config.php';
$helperSet = null; $helperSet = null;
$commands = array();
if (file_exists($configFile)) { if (file_exists($configFile)) {
if ( ! is_readable($configFile)) { if ( ! is_readable($configFile)) {
trigger_error( trigger_error(
@ -40,4 +41,4 @@ if (file_exists($configFile)) {
$helperSet = ($helperSet) ?: new \Symfony\Component\Console\Helper\HelperSet(); $helperSet = ($helperSet) ?: new \Symfony\Component\Console\Helper\HelperSet();
\Doctrine\ORM\Tools\Console\ConsoleRunner::run($helperSet); \Doctrine\ORM\Tools\Console\ConsoleRunner::run($helperSet, $commands);