[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 Mon Aug 31 06:58:45 EDT 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.