Skip to content

Instantly share code, notes, and snippets.

View pakaufmann's full-sized avatar

Patrick Kaufmann pakaufmann

  • innoQ GmbH
  • Switzerland
View GitHub Profile
@pakaufmann
pakaufmann / TranslatedFieldType.php
Created May 15, 2012 13:16 — forked from qrizly/TranslatedFieldType.php
Changed a couple of things. Languages are now dynamic and a default language can be used which won't be written into a translation object but directly into the object itself so it can be used like in this blog post: http://knplabs.fr/blog/I%28blah...blah.
<?php
namespace ExampleBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Edge5\TestProjectBundle\Form\addTranslatedFieldSubscriber;