|
@@ -16,6 +16,16 @@ namespace Symfony\Component\Form;
|
|
*/
|
|
*/
|
|
class FileField extends InputField
|
|
class FileField extends InputField
|
|
{
|
|
{
|
|
|
|
+ /**
|
|
|
|
+ * {@inheritDoc}
|
|
|
|
+ */
|
|
|
|
+ public function __construct($key, array $options = array())
|
|
|
|
+ {
|
|
|
|
+ $options['type'] = 'file';
|
|
|
|
+
|
|
|
|
+ parent::__construct($key, $options);
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* {@inheritDoc}
|
|
* {@inheritDoc}
|
|
*/
|
|
*/
|