Файл: symfony-2.7/src/Symfony/Component/Form/Extension/Core/CoreExtension.php
Строк: 79
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SymfonyComponentFormExtensionCore;
use SymfonyComponentFormAbstractExtension;
use SymfonyComponentPropertyAccessPropertyAccess;
/**
* Represents the main form extension, which loads the core functionality.
*
* @author Bernhard Schussek <bschussek@gmail.com>
*/
class CoreExtension extends AbstractExtension
{
protected function loadTypes()
{
return array(
new TypeFormType(PropertyAccess::createPropertyAccessor()),
new TypeBirthdayType(),
new TypeCheckboxType(),
new TypeChoiceType(),
new TypeCollectionType(),
new TypeCountryType(),
new TypeDateType(),
new TypeDateTimeType(),
new TypeEmailType(),
new TypeHiddenType(),
new TypeIntegerType(),
new TypeLanguageType(),
new TypeLocaleType(),
new TypeMoneyType(),
new TypeNumberType(),
new TypePasswordType(),
new TypePercentType(),
new TypeRadioType(),
new TypeRepeatedType(),
new TypeSearchType(),
new TypeTextareaType(),
new TypeTextType(),
new TypeTimeType(),
new TypeTimezoneType(),
new TypeUrlType(),
new TypeFileType(),
new TypeButtonType(),
new TypeSubmitType(),
new TypeResetType(),
new TypeCurrencyType(),
);
}
}