Custom uploader - How to get the symfony translator
UtechtDustin opened this issue · 1 comments
UtechtDustin commented
I use a custom upload (like https://github.com/1up-lab/OneupUploaderBundle/blob/master/Resources/doc/custom_uploader.md), the problem is i dont know how i can inject/get the symfony translator in the upload function.
bytehead commented
You can get the translator from the container in your controller:
$translator = $this->container->get('translator');