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

Add support for custom stubs for generate migrations #86

Open
seticzech opened this issue Jun 15, 2019 · 0 comments
Open

Add support for custom stubs for generate migrations #86

seticzech opened this issue Jun 15, 2019 · 0 comments

Comments

@seticzech
Copy link

Command doctrine:migrations:generate uses 'stubs' files as templates for generate migration classes. It would be nice to have support for create custom stubs.

We need to add the same custom postUp() and postDown() methods to every generated migration. Now we have to add these methods manually and custom stub file is exactly the solution we need for adding these two methods to migration classes automatically.

How to implement:

Add new configuration option like stubs_path which can be pointed to directory with custom stubs files (blank.stub, create.stub, update.stub). In case the custom stub file doesn't exists the default one will be used.

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

No branches or pull requests

1 participant