Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

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

Halleck45
Copy link

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

@doctrinebot
Copy link

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

@@ -21,6 +21,7 @@
$configFile = getcwd() . DIRECTORY_SEPARATOR . 'cli-config.php';

$helperSet = null;
$commands = array();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
user can set its own commands in the cli-config.php file
@beberlei beberlei merged commit a0e8ca1 into doctrine:master Nov 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants