symfony / symfony/maker-bundle

Use dependency injection in make commands

Open
#49 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
3.4k
Forks
427
Avg merge
2d 22h
Merged PRs (30d)
20

Description

Hi I have a question

  • why not use dependency injection in make commands ?

example generate an entity in with the doctrine config:
https://github.com/symfony/recipes/blob/master/doctrine/doctrine-bundle/1.6/config/packages/doctrine.yaml#L13

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names Symfony Maker Bundle make commands and links to the Doctrine configuration example at doctrine/doctrine-bundle/1.6/config/packages/doctrine.yaml#L13. Start by reviewing that configuration and the existing make-command entry points, then clarify which commands should receive dependencies and what behavior would demonstrate completion.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, symfony
Domain
cli, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.