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:
commit
a0e8ca128c
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user