diff options
Diffstat (limited to 'vendor/symfony/form/Symfony/Component/Form/ResolvedFormTypeFactoryInterface.php')
-rw-r--r-- | vendor/symfony/form/Symfony/Component/Form/ResolvedFormTypeFactoryInterface.php | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/vendor/symfony/form/Symfony/Component/Form/ResolvedFormTypeFactoryInterface.php b/vendor/symfony/form/Symfony/Component/Form/ResolvedFormTypeFactoryInterface.php new file mode 100644 index 00000000..f0ec2330 --- /dev/null +++ b/vendor/symfony/form/Symfony/Component/Form/ResolvedFormTypeFactoryInterface.php | |||
@@ -0,0 +1,38 @@ | |||
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 | * Creates ResolvedFormTypeInterface instances. | ||
16 | * | ||
17 | * This interface allows you to use your custom ResolvedFormTypeInterface | ||
18 | * implementation, within which you can customize the concrete FormBuilderInterface | ||
19 | * implementations or FormView subclasses that are used by the framework. | ||
20 | * | ||
21 | * @author Bernhard Schussek <bschussek@gmail.com> | ||
22 | */ | ||
23 | interface ResolvedFormTypeFactoryInterface | ||
24 | { | ||
25 | /** | ||
26 | * Resolves a form type. | ||
27 | * | ||
28 | * @param FormTypeInterface $type | ||
29 | * @param array $typeExtensions | ||
30 | * @param ResolvedFormTypeInterface $parent | ||
31 | * | ||
32 | * @return ResolvedFormTypeInterface | ||
33 | * | ||
34 | * @throws Exception\UnexpectedTypeException if the types parent {@link FormTypeInterface::getParent()} is not a string | ||
35 | * @throws Exception\InvalidArgumentException if the types parent can not be retrieved from any extension | ||
36 | */ | ||
37 | public function createResolvedType(FormTypeInterface $type, array $typeExtensions, ResolvedFormTypeInterface $parent = null); | ||
38 | } | ||