FormRegistry (Component\Form)
Symfony\Component\Form\FormRegistry
class FormRegistry implements FormRegistryInterface
The central registry of the Form component.
Methods
__construct(array $extensions, ResolvedFormTypeFactoryInterface $resolvedTypeFactory) Constructor. | ||
ResolvedFormTypeInterface | getType(string $name) Returns a form type by name. | |
bool | hasType(string $name) Returns whether the given form type is supported. | |
FormTypeGuesserInterface|null | getTypeGuesser() Returns the guesser responsible for guessing types. | |
FormExtensionInterface[] | getExtensions() Returns the extensions loaded by the framework. |
Details
public __construct(array $extensions, ResolvedFormTypeFactoryInterface $resolvedTypeFactory)
Constructor.
public ResolvedFormTypeInterface getType(string $name)
Returns a form type by name.
This methods registers the type extensions from the form extensions.
public bool hasType(string $name)
Returns whether the given form type is supported.
public FormTypeGuesserInterface|null getTypeGuesser()
Returns the guesser responsible for guessing types.
public FormExtensionInterface[] getExtensions()
Returns the extensions loaded by the framework.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Form/FormRegistry.html