FormRegistry
in package
implements
FormRegistryInterface
The central registry of the Form component.
Tags
Table of Contents
Interfaces
- FormRegistryInterface
- The central registry of the Form component.
Properties
- $checkedTypes : array<string|int, mixed>
- $extensions : array<string|int, FormExtensionInterface>
- $guesser : mixed
- $resolvedTypeFactory : mixed
- $types : array<string|int, ResolvedFormTypeInterface>
Methods
- __construct() : mixed
- getExtensions() : array<string|int, FormExtensionInterface>
- Returns the extensions loaded by the framework.
- getType() : ResolvedFormTypeInterface
- Returns a form type by name.
- getTypeGuesser() : FormTypeGuesserInterface|null
- Returns the guesser responsible for guessing types.
- hasType() : bool
- Returns whether the given form type is supported.
- resolveType() : ResolvedFormTypeInterface
- Wraps a type into a ResolvedFormTypeInterface implementation and connects it with its parent type.
Properties
$checkedTypes
private
array<string|int, mixed>
$checkedTypes
= []
$extensions
private
array<string|int, FormExtensionInterface>
$extensions
= []
$guesser
private
mixed
$guesser
= false
$resolvedTypeFactory
private
mixed
$resolvedTypeFactory
$types
private
array<string|int, ResolvedFormTypeInterface>
$types
= []
Methods
__construct()
public
__construct(array<string|int, FormExtensionInterface> $extensions, ResolvedFormTypeFactoryInterface $resolvedTypeFactory) : mixed
Parameters
- $extensions : array<string|int, FormExtensionInterface>
- $resolvedTypeFactory : ResolvedFormTypeFactoryInterface
Tags
getExtensions()
Returns the extensions loaded by the framework.
public
getExtensions() : array<string|int, FormExtensionInterface>
Return values
array<string|int, FormExtensionInterface>getType()
Returns a form type by name.
public
getType(string $name) : ResolvedFormTypeInterface
Parameters
- $name : string
Return values
ResolvedFormTypeInterfacegetTypeGuesser()
Returns the guesser responsible for guessing types.
public
getTypeGuesser() : FormTypeGuesserInterface|null
Return values
FormTypeGuesserInterface|nullhasType()
Returns whether the given form type is supported.
public
hasType(string $name) : bool
Parameters
- $name : string
Return values
boolresolveType()
Wraps a type into a ResolvedFormTypeInterface implementation and connects it with its parent type.
private
resolveType(FormTypeInterface $type) : ResolvedFormTypeInterface
Parameters
- $type : FormTypeInterface