Symfony 5 – In Controller, execute migration

I’m looking for a way to execut the command which make migration into a controller.
I already took a look at doc https://symfony.com/doc/current/console.html but it doesn’t really give a response to my question.

What i want : Be able to execute php bin/console doctrine:migrations:generate in a controller.
Moreover, there no security problem by doing this ?

Have a nice day !

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *