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

Possibility to add custom templates when [make] command #1659

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

fabriman
Copy link

@fabriman fabriman commented Feb 5, 2025

Possibility to use custom templates when using make command.

Update on Generator.php to check if a template exists in templates/bundles/MakerBundle/' . $templateName

Tree inside template's folder needs to follow the bundle convention.

make:crud example to customize the show.html.twig:
create a custom copy of show.tpl.php in $PROJECT_DIR/templates/bundles/MakerBundle/crud/templates

@eltharin
Copy link
Contributor

eltharin commented Feb 6, 2025

Idea is good but allow templates bundle folder can be better, everyone can make his own maker in their own bundles and have it in many projects.
Maybe have a configuration to add makerbundle custom template folder ?

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.

2 participants