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\HttpFoundation\Type
;
14 use Symfony\Component\Form\AbstractTypeExtension
;
15 use Symfony\Component\Form\Extension\HttpFoundation\EventListener\BindRequestListener
;
16 use Symfony\Component\Form\Extension\HttpFoundation\HttpFoundationRequestHandler
;
17 use Symfony\Component\Form\FormBuilderInterface
;
20 * @author Bernhard Schussek <bschussek@gmail.com>
22 class FormTypeHttpFoundationExtension
extends AbstractTypeExtension
25 * @var BindRequestListener
30 * @var HttpFoundationRequestHandler
32 private $requestHandler;
34 public function __construct()
36 $this->listener
= new BindRequestListener();
37 $this->requestHandler
= new HttpFoundationRequestHandler();
43 public function buildForm(FormBuilderInterface
$builder, array $options)
45 $builder->addEventSubscriber($this->listener
);
46 $builder->setRequestHandler($this->requestHandler
);
52 public function getExtendedType()