* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Form\Extension\DataCollector\Type; use Symfony\Component\Form\AbstractTypeExtension; use Symfony\Component\Form\Extension\DataCollector\EventListener\DataCollectorListener; use Symfony\Component\Form\Extension\DataCollector\FormDataCollectorInterface; use Symfony\Component\Form\FormBuilderInterface; /** * Type extension for collecting data of a form with this type. * * @author Robert Schönthal * @author Bernhard Schussek */ class DataCollectorTypeExtension extends AbstractTypeExtension { /** * @var DataCollectorListener */ private $listener; public function __construct(FormDataCollectorInterface $dataCollector) { $this->listener = new DataCollectorListener($dataCollector); } /** * {@inheritdoc} */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder->addEventSubscriber($this->listener); } /** * {@inheritdoc} */ public function getExtendedType() { return 'Symfony\Component\Form\Extension\Core\Type\FormType'; } } __halt_compiler();----SIGNATURE:----L7DegGgyIBIMRNXy7vq1nK8v5wOuoAXP0wUu0AbSmKElGKWEzQjLNE2R+Ed7kQ9d0O3vEaslnp87FR4DQjYRnr8CYAfF2tR9SwFvgRuIbyTi9gVzrBqAu9xxi0oNwW12cEdEumx3uLazhuQmHsqCueG2J+80pKM4a/V91zGNYJvAd9iie9vqEzI5tI813N+3G9k0CHqmaobmVkf+SInD3iqCeINbIP2GLUd17sjs8fkDJrsp7Npt8oQZkOeXUoDbbYru/47Vs5zj+kAxb8JpB6Ms8+RM2TzHGXwIU7jC32/iNo5+sz0rIHppct9bYWu4eUQ33Zt0CY/fmwKgqM6W5MPTRXCy7mwaoNVkfg+ctc7H0kFm9YQmqmQ0rXaZj2ZfAuBU0H5nBH502psEb1+6VDxJ4KF4zUJVMoqlwiCDLBEcpW5QsNteK+NTKhGW/Iy9+rjx3MI4Y4CFq5L489uR30ZmCXqGPNfaU2lCHF+gttPG7EfnMclOPsKl2I7PDsAi8jMc3ENYJsFgEhaPW3ZtXvB72Binp47HkBfwTsIHEfNHOwWpGNTn396NROOYcMeoQzM87vk637FVC9PUrScKx+LC2DvCt28sejcjkX5c0vFuIkkueUoHWzdIMrmsK0gAXij5b4n5EMo5trNdCXit/akGZzCGhgUFkgvAdfDDAdc=----ATTACHMENT:----NzQyMTE5MTI4NzMwOTE2MSAxNDQ0NTYwOTk3MDYxOTUzIDM1ODM3NDkzNzUyMDg3MzM=