[DDC-2083] [GH-482] user can set its own commands in the cli-config.php file Created: 16/Oct/12  Updated: 31/Dec/13  Resolved: 12/Nov/12

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: None
Affects Version/s: None
Fix Version/s: 2.4
Security Level: All

Type: Bug Priority: Major
Reporter: Benjamin Eberlei Assignee: Benjamin Eberlei
Resolution: Fixed Votes: 0
Labels: None


 Description   

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

Url: https://github.com/doctrine/doctrine2/pull/482

Message:

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
);
````



 Comments   
Comment by Doctrine Bot [ 31/Dec/13 ]

A related Github Pull-Request [GH-482] was closed:
https://github.com/doctrine/dbal/pull/482

Generated at Wed Apr 23 08:09:22 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.