symfony / 3.4 / symfony / component / form / extension / datacollector / proxy / resolvedtypefactorydatacollectorproxy.html

ResolvedTypeFactoryDataCollectorProxy

class ResolvedTypeFactoryDataCollectorProxy implements ResolvedFormTypeFactoryInterface

Proxy that wraps resolved types into {@link ResolvedTypeDataCollectorProxy} instances.

Methods

__construct(ResolvedFormTypeFactoryInterface $proxiedFactory, FormDataCollectorInterface $dataCollector)
ResolvedFormTypeInterface createResolvedType(FormTypeInterface $type, array $typeExtensions, ResolvedFormTypeInterface $parent = null)

Resolves a form type.

Details

__construct(ResolvedFormTypeFactoryInterface $proxiedFactory, FormDataCollectorInterface $dataCollector)

Parameters

ResolvedFormTypeInterface createResolvedType(FormTypeInterface $type, array $typeExtensions, ResolvedFormTypeInterface $parent = null)

Resolves a form type.

Parameters

FormTypeInterface $type
array $typeExtensions
ResolvedFormTypeInterface $parent

Return Value

Exceptions

UnexpectedTypeException if the types parent {@link FormTypeInterface::getParent()} is not a string
InvalidArgumentException if the types parent can not be retrieved from any extension