TypeConverterRegistry

Registry containing all available Type Converters, registered via Services.yaml.

Internal

not part of TYPO3 Core API, as this is a framework-internal registry.

Table of Contents

Properties

$typeConverters  : array<string, array<string, array<int, TypeConverterInterface>>>

Methods

add()  : void
Used in the TypeConverterPass only.
findTypeConverter()  : TypeConverterInterface
findEligibleConverterWithHighestPriority()  : TypeConverterInterface|null
findFirstEligibleTypeConverterInObjectHierarchy()  : TypeConverterInterface|null
Tries to find a suitable type converter for the given source type and target type.
getConvertersForInterfaces()  : array<string|int, TypeConverterInterface>

Properties

Methods

findFirstEligibleTypeConverterInObjectHierarchy()

Tries to find a suitable type converter for the given source type and target type.

protected findFirstEligibleTypeConverterInObjectHierarchy(string $sourceType, class-string $targetClass) : TypeConverterInterface|null
Parameters
$sourceType : string

Type of the source to convert from

$targetClass : class-string

Name of the target class to find a type converter for

Tags
throws
InvalidTargetException
throws
DuplicateTypeConverterException
Return values
TypeConverterInterface|null

        
On this page

Search results