* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Form\Extension\Core; use Symfony\Component\Form\AbstractExtension; use Symfony\Component\Form\ChoiceList\Factory\CachingFactoryDecorator; use Symfony\Component\Form\ChoiceList\Factory\ChoiceListFactoryInterface; use Symfony\Component\Form\ChoiceList\Factory\DefaultChoiceListFactory; use Symfony\Component\Form\ChoiceList\Factory\PropertyAccessDecorator; use Symfony\Component\PropertyAccess\PropertyAccess; use Symfony\Component\PropertyAccess\PropertyAccessorInterface; /** * Represents the main form extension, which loads the core functionality. * * @author Bernhard Schussek */ class CoreExtension extends AbstractExtension { private $propertyAccessor; private $choiceListFactory; public function __construct(PropertyAccessorInterface $propertyAccessor = null, ChoiceListFactoryInterface $choiceListFactory = null) { $this->propertyAccessor = $propertyAccessor ?: PropertyAccess::createPropertyAccessor(); $this->choiceListFactory = $choiceListFactory ?: new CachingFactoryDecorator(new PropertyAccessDecorator(new DefaultChoiceListFactory(), $this->propertyAccessor)); } protected function loadTypes() { return array( new Type\FormType($this->propertyAccessor), new Type\BirthdayType(), new Type\CheckboxType(), new Type\ChoiceType($this->choiceListFactory), new Type\CollectionType(), new Type\CountryType(), new Type\DateIntervalType(), new Type\DateType(), new Type\DateTimeType(), new Type\EmailType(), new Type\HiddenType(), new Type\IntegerType(), new Type\LanguageType(), new Type\LocaleType(), new Type\MoneyType(), new Type\NumberType(), new Type\PasswordType(), new Type\PercentType(), new Type\RadioType(), new Type\RangeType(), new Type\RepeatedType(), new Type\SearchType(), new Type\TextareaType(), new Type\TextType(), new Type\TimeType(), new Type\TimezoneType(), new Type\UrlType(), new Type\FileType(), new Type\ButtonType(), new Type\SubmitType(), new Type\ResetType(), new Type\CurrencyType(), new Type\TelType(), new Type\ColorType(), ); } } __halt_compiler();----SIGNATURE:----qnC0An194JC+hVH537vnIehbSSvi49bnYuRzA8+DBMMKhEoAQ/GiHD5YNRk34g+jMxcPPDjCEX4CLRYQ+4bg0J6t7jxwbs0+u0VMUNuT9iAIRjmSTAAIsuu7nb8iGD3m/i/usFguZMOeyyIlHE+bzUhRCZc4HCYWCDs9S8UJ47VkBQudejf3NABBmslG0U9o8/hGBTSasCHKgUjh65d3+U2VfJdZ0PanFYGRAToju1d13Vp97nLFQquw8Y63bOhNvg6iC0nx2CIcRESGLz7LueuHWu/ejku8WlZhyC2+AZR+5/9V9hyhJ2HpLtezLxaRSrlvoES04W5bXn5Q2667fct64dtDghMyNCZWJrfKoEx/ypxsLWIxcHPuhfCMoh5y4/MoPQijq4cwoJUHxPy5kxCGhZhQUA+ScS5INCc2ixz0UkfmNfu15yqtuExbkn5S4PAQzYfrN1F9oPaGM1RTXZwdIE2L0wVoPO0Uy7Z8HxBwghwlGhvFikyJWiDP4VT9FljRy8v6vhpsUW71Ei3TWEK7OPnZL9nsmDIfgYZu+x8fxxlu5aj965c6FkG7WqSzzgzfFVgAlZrLZkJcY7Ow0Ka0wZH2vaGKTQmX1AOhGZFvyIkKCepkrtOTwHL1d8Fzua6iQ1247fyNowOjdGm+eC63TZG8m0CEbhcUfKah6lA=----ATTACHMENT:----NDM0ODE3OTc0Nzg2ODI3NCA2NzY3MzU5Mjk2NTc3ODYgMTIxMjY2MjEzNDc3NTU=