Monthly Archives: October 2015

Create and test a service using translator container with Symfony2

Here is the code to create a service which uses the translator component from Symfony2. The service is also tested. Create the service in messages.en.yml : cb.texta1: Travel from %A% to %B% in services.yml : cb.labelbuilder: class: AppBundle\Service\LabelBuilder arguments: [@translator] … Continue reading

Posted in Uncategorized | Leave a comment