How can I run symfony 2 run command from controller

前端 未结 9 1436
长发绾君心
长发绾君心 2020-11-28 20:03

I\'m wondering how can I run Symfony 2 command from browser query or from controller.

Its because I don\'t have any possibility on hosting to run it

9条回答
  •  攒了一身酷
    2020-11-28 20:17

    You can use this bundle to run Symfony2 commands from controller (http request) and pass options/parameters in URL.

    https://github.com/mrafalko/CommandRunnerBundle

提交回复
热议问题