Breaking: #96935 - Register linkvalidator linktypes via service configuration
See forge#96935
Description
Linkvalidator linktypes
are now registered via service configuration, also see
feature changelog.
Therefore the registration via
$GLOBALS
has been removed.
Additionally, to be able to use autoconfiguration, the linktype
identifier
has to be provided by the service directly using the get
method, which is now required by the Linktype
.
In case a custom linktype
extends
\TYPO3\
,
only the class property $identifier
has to be set, e.g.
protected string $identifier = 'my_
.
Impact
Registration of custom linktypes
via
$GLOBALS
is not evaluated anymore.
The Linktype
is extended for
public function get
.
Affected Installations
All TYPO3 installations using the old registration.
All TYPO3 installations with custom linktypes
, not implementing
public function get
.
Migration
Remove $GLOBALS
from your ext_
file.
If autoconfigure
is not enabled in your Configuration/
,
add the tag linkvalidator.
manually to your linktype
service.
Vendor\Extension\Linktype\MyCustomLinktype:
tags:
- name: linkvalidator.linktype
Additionally, make sure to either implement
public function get
or, in case your linktype
extends
Abstract
, to set the $identifier
class property.