1
0
mirror of synced 2024-12-05 03:06:05 +03:00

user can set its own commands in the cli-config.php file

This commit is contained in:
Halleck45 2012-10-16 17:03:18 +02:00
parent 56e96793c0
commit d3c58d83a5

View File

@ -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 @@ if (file_exists($configFile)) {
$helperSet = ($helperSet) ?: new \Symfony\Component\Console\Helper\HelperSet();
\Doctrine\ORM\Tools\Console\ConsoleRunner::run($helperSet);
\Doctrine\ORM\Tools\Console\ConsoleRunner::run($helperSet, $commands);