[PR #482] [MERGED] user can set its own commands in the cli-config.php file #8262

Closed
opened 2026-01-22 15:59:06 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/482
Author: @Halleck45
Created: 10/16/2012
Status: Merged
Merged: 11/12/2012
Merged by: @beberlei

Base: masterHead: cli-customizable


📝 Commits (1)

  • d3c58d8 user can set its own commands in the cli-config.php file

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 bin/doctrine.php (+2 -1)

📄 Description

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

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/orm/pull/482 **Author:** [@Halleck45](https://github.com/Halleck45) **Created:** 10/16/2012 **Status:** ✅ Merged **Merged:** 11/12/2012 **Merged by:** [@beberlei](https://github.com/beberlei) **Base:** `master` ← **Head:** `cli-customizable` --- ### 📝 Commits (1) - [`d3c58d8`](https://github.com/doctrine/orm/commit/d3c58d83a5e6086777dfcb537f98cbfeffdbe035) user can set its own commands in the cli-config.php file ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `bin/doctrine.php` (+2 -1) </details> ### 📄 Description 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 ); ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-22 15:59:07 +01:00
admin closed this issue 2026-01-22 15:59:07 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#8262