0

I would like to know if it is possible to run Symfony2 default commands within a controller.

I do not mean customized commands: I mean the defaults ones, such as:

- generate:bundle
- doctrine:generate:entity

And so on.

4
  • to what end? Why are you trying to do that? Commented Nov 10, 2014 at 20:24
  • 1
    possible duplicate of How can I run symfony 2 run command from controller Commented Nov 10, 2014 at 21:09
  • 1
    Apart from the dublicate: if it is just because you don't have access to the console, there are plenty of bundles for your needs. For example github.com/winzou/ConsoleBundle, there are plenty of other bundles (I used one before, I think it was this one) Commented Nov 10, 2014 at 21:11
  • It is not a duplicate. As I say in the post : "I do not mean custom commands : I mean the default ones...". I am trying to create bundle not from the console but from a controller... Commented Nov 11, 2014 at 8:58

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.