When using dev mode with a Symfony2.x application, one usually works in locale. Hence, such function does not works as expected (for instance, try to get th
I use this inside of a Symfony service. You will need to add the line APP_ENV=dev to .env.local and APP_ENV=prod to .env file. Depending on if you have a similar env setup to me