Modifying Symfony Forms html attributes / overriding a single attribute
问题 I am trying to figure out how to modify html attributes on the fly with Symfony2 forms. The situation is a case where a default placeholder is used most of the time, but occasionally, the developer needs to write a custom message. My Form type looks like this: <?php namespace My\AwesomeBundle\FormType; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; use My\AwesomeBundle\Transformer