diff options
Diffstat (limited to 'vendor/symfony/form/Symfony/Component/Form/FormFactoryBuilderInterface.php')
-rw-r--r-- | vendor/symfony/form/Symfony/Component/Form/FormFactoryBuilderInterface.php | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/vendor/symfony/form/Symfony/Component/Form/FormFactoryBuilderInterface.php b/vendor/symfony/form/Symfony/Component/Form/FormFactoryBuilderInterface.php new file mode 100644 index 00000000..9370c573 --- /dev/null +++ b/vendor/symfony/form/Symfony/Component/Form/FormFactoryBuilderInterface.php | |||
@@ -0,0 +1,108 @@ | |||
1 | <?php | ||
2 | |||
3 | /* | ||
4 | * This file is part of the Symfony package. | ||
5 | * | ||
6 | * (c) Fabien Potencier <fabien@symfony.com> | ||
7 | * | ||
8 | * For the full copyright and license information, please view the LICENSE | ||
9 | * file that was distributed with this source code. | ||
10 | */ | ||
11 | |||
12 | namespace Symfony\Component\Form; | ||
13 | |||
14 | /** | ||
15 | * A builder for FormFactoryInterface objects. | ||
16 | * | ||
17 | * @author Bernhard Schussek <bschussek@gmail.com> | ||
18 | */ | ||
19 | interface FormFactoryBuilderInterface | ||
20 | { | ||
21 | /** | ||
22 | * Sets the factory for creating ResolvedFormTypeInterface instances. | ||
23 | * | ||
24 | * @param ResolvedFormTypeFactoryInterface $resolvedTypeFactory | ||
25 | * | ||
26 | * @return FormFactoryBuilderInterface The builder. | ||
27 | */ | ||
28 | public function setResolvedTypeFactory(ResolvedFormTypeFactoryInterface $resolvedTypeFactory); | ||
29 | |||
30 | /** | ||
31 | * Adds an extension to be loaded by the factory. | ||
32 | * | ||
33 | * @param FormExtensionInterface $extension The extension. | ||
34 | * | ||
35 | * @return FormFactoryBuilderInterface The builder. | ||
36 | */ | ||
37 | public function addExtension(FormExtensionInterface $extension); | ||
38 | |||
39 | /** | ||
40 | * Adds a list of extensions to be loaded by the factory. | ||
41 | * | ||
42 | * @param array $extensions The extensions. | ||
43 | * | ||
44 | * @return FormFactoryBuilderInterface The builder. | ||
45 | */ | ||
46 | public function addExtensions(array $extensions); | ||
47 | |||
48 | /** | ||
49 | * Adds a form type to the factory. | ||
50 | * | ||
51 | * @param FormTypeInterface $type The form type. | ||
52 | * | ||
53 | * @return FormFactoryBuilderInterface The builder. | ||
54 | */ | ||
55 | public function addType(FormTypeInterface $type); | ||
56 | |||
57 | /** | ||
58 | * Adds a list of form types to the factory. | ||
59 | * | ||
60 | * @param array $types The form types. | ||
61 | * | ||
62 | * @return FormFactoryBuilderInterface The builder. | ||
63 | */ | ||
64 | public function addTypes(array $types); | ||
65 | |||
66 | /** | ||
67 | * Adds a form type extension to the factory. | ||
68 | * | ||
69 | * @param FormTypeExtensionInterface $typeExtension The form type extension. | ||
70 | * | ||
71 | * @return FormFactoryBuilderInterface The builder. | ||
72 | */ | ||
73 | public function addTypeExtension(FormTypeExtensionInterface $typeExtension); | ||
74 | |||
75 | /** | ||
76 | * Adds a list of form type extensions to the factory. | ||
77 | * | ||
78 | * @param array $typeExtensions The form type extensions. | ||
79 | * | ||
80 | * @return FormFactoryBuilderInterface The builder. | ||
81 | */ | ||
82 | public function addTypeExtensions(array $typeExtensions); | ||
83 | |||
84 | /** | ||
85 | * Adds a type guesser to the factory. | ||
86 | * | ||
87 | * @param FormTypeGuesserInterface $typeGuesser The type guesser. | ||
88 | * | ||
89 | * @return FormFactoryBuilderInterface The builder. | ||
90 | */ | ||
91 | public function addTypeGuesser(FormTypeGuesserInterface $typeGuesser); | ||
92 | |||
93 | /** | ||
94 | * Adds a list of type guessers to the factory. | ||
95 | * | ||
96 | * @param array $typeGuessers The type guessers. | ||
97 | * | ||
98 | * @return FormFactoryBuilderInterface The builder. | ||
99 | */ | ||
100 | public function addTypeGuessers(array $typeGuessers); | ||
101 | |||
102 | /** | ||
103 | * Builds and returns the factory. | ||
104 | * | ||
105 | * @return FormFactoryInterface The form factory. | ||
106 | */ | ||
107 | public function getFormFactory(); | ||
108 | } | ||