Skip to content

Commit 62c34de

Browse files
authored
Update TypeConverter.rst (#5932)
Take a look at the registration of the IntegerConverter in typo3/cms-extbase/Configuration/Services.yaml. It uses the string "integer" instead of "int". Registering your own TypeConverter with a source or target type of "int" does not work.
1 parent 00e7703 commit 62c34de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/ExtensionArchitecture/Extbase/Reference/Controller/TypeConverter.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The registration and configuration of a type converter is done in the extension'
5050
- name: extbase.type_converter
5151
priority: 10
5252
target: \DateTime
53-
sources: int,string
53+
sources: integer,string
5454
5555
For conversions of Extbase controller action parameters into Extbase domain
5656
model objects the incoming data is usually a numeric type, but in case of an update
@@ -67,4 +67,4 @@ Thus the configuration should list :php:`array` as one of its sources:
6767
- name: extbase.type_converter
6868
priority: 10
6969
target: MyVendor\MyExtension\Domain\Model\MyCustomModel
70-
sources: int,string,array
70+
sources: integer,string,array

0 commit comments

Comments
 (0)