Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation: #104764 - Fluid TemplatePaths->fillDefaultsByPackageName #4341

Open
simonschaufi opened this issue Oct 15, 2024 · 0 comments
Open

Comments

@simonschaufi
Copy link
Collaborator

Deprecation: #104764 - Fluid TemplatePaths->fillDefaultsByPackageName

https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/13.3/Deprecation-104764-FluidTemplatePaths-fillDefaultsByPackageName.html

Deprecation: #104764 - Fluid TemplatePaths->fillDefaultsByPackageName

See 104764

Description

Method
\TYPO3\CMS\Fluid\View\TemplatePaths->fillDefaultsByPackageName() has
been marked as deprecated in TYPO3 v13 and will be removed in TYPO3 v14.

Fluid template paths should be set directly using the methods
setTemplateRootPaths(), setLayoutRootPaths() and
setPartialRootPaths(), or - even better - be handled by
ViewFactoryInterface, which comes as new feature in TYPO3 v13.

See feature-104773-1724939348 for more details of the generic view
interface.

Impact

Calling fillDefaultsByPackageName() triggers a deprecation level log
level entry in TYPO3 v13 and will be removed in TYPO3 v14.

Affected installations

The method is relatively rarely used by extensions directly, a usage in
Extbase ActionController has been refactored away. The extension
scanner will find candidates.

Note class TemplatePaths is marked
@internal and should not be used by
extensions at all.

Migration

Use \TYPO3\CMS\Core\View\ViewFactoryInterface to create views with
proper template paths instead. The TYPO3 system extensions come with
plenty of examples on how to do this.

PHP-API, FullyScanned, ext:fluid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant