]>
git.immae.eu Git - github/wallabag/wallabag.git/blob - vendor/symfony/form/Symfony/Component/Form/FormRegistryInterface.php
16cd93844105cf1724f20bab21688126462369b7
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
;
15 * The central registry of the Form component.
17 * @author Bernhard Schussek <bschussek@gmail.com>
19 interface FormRegistryInterface
22 * Returns a form type by name.
24 * This methods registers the type extensions from the form extensions.
26 * @param string $name The name of the type
28 * @return ResolvedFormTypeInterface The type
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
33 public function getType($name);
36 * Returns whether the given form type is supported.
38 * @param string $name The name of the type
40 * @return Boolean Whether the type is supported
42 public function hasType($name);
45 * Returns the guesser responsible for guessing types.
47 * @return FormTypeGuesserInterface|null
49 public function getTypeGuesser();
52 * Returns the extensions loaded by the framework.
56 public function getExtensions();