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
;
14 use Symfony\Component\Form\AbstractExtension
;
15 use Symfony\Component\PropertyAccess\PropertyAccess
;
18 * Represents the main form extension, which loads the core functionality.
20 * @author Bernhard Schussek <bschussek@gmail.com>
22 class CoreExtension
extends AbstractExtension
24 protected function loadTypes()
27 new Type\
FormType(PropertyAccess
::getPropertyAccessor()),
28 new Type\
BirthdayType(),
29 new Type\
CheckboxType(),
30 new Type\
ChoiceType(),
31 new Type\
CollectionType(),
32 new Type\
CountryType(),
34 new Type\
DateTimeType(),
36 new Type\
HiddenType(),
37 new Type\
IntegerType(),
38 new Type\
LanguageType(),
39 new Type\
LocaleType(),
41 new Type\
NumberType(),
42 new Type\
PasswordType(),
43 new Type\
PercentType(),
45 new Type\
RepeatedType(),
46 new Type\
SearchType(),
47 new Type\
TextareaType(),
50 new Type\
TimezoneType(),
53 new Type\
ButtonType(),
54 new Type\
SubmitType(),
56 new Type\
CurrencyType(),