Deprecation: #97536 - LinkResultFactory

See forge#97536

Description

The PHP class \TYPO3\CMS\Frontend\Typolink\LinkResultFactory has been marked as deprecated, as its functionality has been migrated into \TYPO3\CMS\Frontend\Typolink\LinkFactory .

In addition, the method createFromUriString() has been marked as deprecated as the shortened variant createUri() should be used instead.

Impact

Instantiating an object of type LinkResultFactory will instantiate LinkFactory instead via class alias in TYPO3 v12, as the class itself has been removed.

Calling createFromUriString() will trigger a deprecation log entry.

The extension scanner reports affected extensions.

Affected installations

TYPO3 installations with custom extensions instantiating LinkResultFactory as a PHP object or calling createFromUriString() directly, which is very rare.

Migration

TYPO3 extensions should migrate to using LinkFactory and its main methods directly.