Skip to content


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

doctrinebot opened this Issue · 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
@doctrinebot doctrinebot added this to the 2.4 milestone
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.