Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

user can set its own commands in the cli-config.php file #482

Merged
merged 1 commit into from Nov 12, 2012

Conversation

Projects
None yet
4 participants
Contributor

Halleck45 commented Oct 16, 2012

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

Hello,

thank you for positing this Pull Request. I have automatically opened an issue on our Jira Bug Tracker for you with the details of this Pull-Request. See the Link:

http://doctrine-project.org/jira/browse/DDC-2083

@guilhermeblanco guilhermeblanco commented on the diff Nov 3, 2012

bin/doctrine.php
@@ -21,6 +21,7 @@
$configFile = getcwd() . DIRECTORY_SEPARATOR . 'cli-config.php';
$helperSet = null;
+$commands = array();
@guilhermeblanco

guilhermeblanco Nov 3, 2012

Owner

Missing line break between assignment statement and conditional statement.
Also, the = signs are not aligned.

beberlei added a commit that referenced this pull request Nov 12, 2012

Merge pull request #482 from Halleck45/cli-customizable
user can set its own commands in the cli-config.php file

@beberlei beberlei merged commit a0e8ca1 into doctrine:master Nov 12, 2012

1 check passed

default The Travis build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment