How run a command as command line from a symfony function?
E.g.
C:\SymfonyProject> php app/console my-command --option=my-option
I want to run this command from a function. This command export files from a database and place this files in app/Resource/translations folder from Symfony Project.
I.e.
public function exportFiles(){ // I want to run command here. }
Thanks! :)