Skip to content
Snippets Groups Projects
Commit c68090f2 authored by Simon Praetorius's avatar Simon Praetorius
Browse files

[TASK] Avoid constructor argument of TemplatePaths

A previous patch already avoided calls to the constructor
of `TemplatePaths`, which is deprecated if called with an
argument since Fluid v2.15. This follow-up covers remaining
places.

Furthermore, both usages of `GeneralUtility::makeInstance()`
are converted to `new` to harmonize the creation of those
objects in the Core. Now every occurrences use `new`.

`ksort()` is removed because this is done internally in
`TemplatePaths` setters. It was necessary before because
of the merging behavior of `extractPathArrays()`, which
is no longer used now (and is also deprecated in Fluid).

Resolves: #104860
Related: #104823
Releases: main
Change-Id: Ic16638e8512f6272dbd52bbf0f65fb405b8483cf
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/85926


Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarSimon Praetorius <simon@praetorius.me>
Reviewed-by: default avatarSimon Praetorius <simon@praetorius.me>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
parent f8d767b4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment