Breaking: #644 - Remove hard dependency to EXT:form
See Issue 644
Description
extcode/
itself doesn't need any code from typo3/
.
This extension provide an itemProcFunc to provide a list of the form definition
for a selector filtered by a given prototype.
This extension provide an AddToCartFinisher which extends the AbstractFinisher
of typo3/
.
Both classes can be used by product extensions, but are not used by extcode/
itself.
To achieve this, the part concerning the form definitions had to be moved to a
separate class \Extcode\
.
Affected Installations
Own product extensions that link products with form_definitions and have used the itemProcFunc ‘Extcode\Cart\Hooks\ItemsProcFunc->user_formDefinition’ in the TCA.
Migration
Replace
'itemsProcFunc' => 'Extcode\\Cart\\Hooks\\ItemsProcFunc->user_formDefinition',
'itemsProcFuncConfig' => [
'prototypeName' => 'cart-events',
],
with
'itemsProcFunc' => \\Extcode\\Cart\\Hooks\\FormDefinitions::class . '->getItems',
'itemsProcFuncConfig' => [
'prototypeName' => 'cart-events',
],