4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Form\Extension\Core\Type
;
14 use Symfony\Component\Form\AbstractType
;
15 use Symfony\Component\Form\FormInterface
;
16 use Symfony\Component\Form\FormView
;
17 use Symfony\Component\OptionsResolver\OptionsResolverInterface
;
19 class FileType
extends AbstractType
24 public function buildView(FormView
$view, FormInterface
$form, array $options)
26 $view->vars
= array_replace($view->vars
, array(
35 public function finishView(FormView
$view, FormInterface
$form, array $options)
38 ->vars
['multipart'] = true
45 public function setDefaultOptions(OptionsResolverInterface
$resolver)
47 $resolver->setDefaults(array(
49 'data_class' => 'Symfony\Component\HttpFoundation\File\File',
57 public function getName()