DDC-2083: [GH-482] user can set its own commands in the cli-config.php file #2766

doctrinebot opened this Issue Oct 16, 2012 · 2 comments

2 participants


Jira issue originally created by user @beberlei:

This issue is created automatically through a Github pull request on behalf of Halleck45:

Url: #482


Today we need to edit source to add custom commands. With this minor change, we can add custom commands directly in the cli-config.php file :

require_once "app/bootstrap.php";
$helperSet = new \Symfony\Component\Console\Helper\HelperSet(array(
            'em' => new \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper($entityManager)

// example here
$commands = array(
    new Doctrine\ORM\Tools\Console\Command\LoadDataCommand

Issue was closed with resolution "Fixed"


Comment created by @doctrinebot:

A related Github Pull-Request [GH-482] was closed:

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.4 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment