diff options
Diffstat (limited to 'vendor/symfony/form/Symfony/Component/Form/FormRegistryInterface.php')
-rw-r--r-- | vendor/symfony/form/Symfony/Component/Form/FormRegistryInterface.php | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/vendor/symfony/form/Symfony/Component/Form/FormRegistryInterface.php b/vendor/symfony/form/Symfony/Component/Form/FormRegistryInterface.php new file mode 100644 index 00000000..16cd9384 --- /dev/null +++ b/vendor/symfony/form/Symfony/Component/Form/FormRegistryInterface.php | |||
@@ -0,0 +1,57 @@ | |||
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 | * The central registry of the Form component. | ||
16 | * | ||
17 | * @author Bernhard Schussek <bschussek@gmail.com> | ||
18 | */ | ||
19 | interface FormRegistryInterface | ||
20 | { | ||
21 | /** | ||
22 | * Returns a form type by name. | ||
23 | * | ||
24 | * This methods registers the type extensions from the form extensions. | ||
25 | * | ||
26 | * @param string $name The name of the type | ||
27 | * | ||
28 | * @return ResolvedFormTypeInterface The type | ||
29 | * | ||
30 | * @throws Exception\UnexpectedTypeException if the passed name is not a string | ||
31 | * @throws Exception\InvalidArgumentException if the type can not be retrieved from any extension | ||
32 | */ | ||
33 | public function getType($name); | ||
34 | |||
35 | /** | ||
36 | * Returns whether the given form type is supported. | ||
37 | * | ||
38 | * @param string $name The name of the type | ||
39 | * | ||
40 | * @return Boolean Whether the type is supported | ||
41 | */ | ||
42 | public function hasType($name); | ||
43 | |||
44 | /** | ||
45 | * Returns the guesser responsible for guessing types. | ||
46 | * | ||
47 | * @return FormTypeGuesserInterface|null | ||
48 | */ | ||
49 | public function getTypeGuesser(); | ||
50 | |||
51 | /** | ||
52 | * Returns the extensions loaded by the framework. | ||
53 | * | ||
54 | * @return array | ||
55 | */ | ||
56 | public function getExtensions(); | ||
57 | } | ||