DependencyInjectionExtension
in package
implements
FormExtensionInterface
Table of Contents
Interfaces
- FormExtensionInterface
- Interface for extensions which provide types, type extensions and a guesser.
Properties
- $guesser : mixed
- $guesserLoaded : bool
- $guesserServices : iterable<string|int, mixed>
- $typeContainer : mixed
- $typeExtensionServices : array<string|int, mixed>
Methods
- __construct() : mixed
- getType() : FormTypeInterface
- Returns a type by name.
- getTypeExtensions() : array<string|int, FormTypeExtensionInterface>
- Returns the extensions for the given type.
- getTypeGuesser() : FormTypeGuesserInterface|null
- Returns the type guesser provided by this extension.
- hasType() : bool
- Returns whether the given type is supported.
- hasTypeExtensions() : bool
- Returns whether this extension provides type extensions for the given type.
Properties
$guesser
private
mixed
$guesser
= null
$guesserLoaded
private
bool
$guesserLoaded
= false
$guesserServices
private
iterable<string|int, mixed>
$guesserServices
$typeContainer
private
mixed
$typeContainer
$typeExtensionServices
private
array<string|int, mixed>
$typeExtensionServices
Methods
__construct()
public
__construct(ContainerInterface $typeContainer, array<string|int, iterable<string|int, mixed>> $typeExtensionServices, iterable<string|int, mixed> $guesserServices) : mixed
Parameters
- $typeContainer : ContainerInterface
- $typeExtensionServices : array<string|int, iterable<string|int, mixed>>
- $guesserServices : iterable<string|int, mixed>
getType()
Returns a type by name.
public
getType(string $name) : FormTypeInterface
Parameters
- $name : string
-
The name of the type
Return values
FormTypeInterfacegetTypeExtensions()
Returns the extensions for the given type.
public
getTypeExtensions(string $name) : array<string|int, FormTypeExtensionInterface>
Parameters
- $name : string
-
The name of the type
Return values
array<string|int, FormTypeExtensionInterface>getTypeGuesser()
Returns the type guesser provided by this extension.
public
getTypeGuesser() : FormTypeGuesserInterface|null
Return values
FormTypeGuesserInterface|nullhasType()
Returns whether the given type is supported.
public
hasType(string $name) : bool
Parameters
- $name : string
-
The name of the type
Return values
boolhasTypeExtensions()
Returns whether this extension provides type extensions for the given type.
public
hasTypeExtensions(string $name) : bool
Parameters
- $name : string
-
The name of the type