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: #104773 - Custom Fluid views and Extbase #4342

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

Deprecation: #104773 - Custom Fluid views and Extbase #4342

simonschaufi opened this issue Oct 15, 2024 · 0 comments

Comments

@simonschaufi
Copy link
Collaborator

Deprecation: #104773 - Custom Fluid views and Extbase

https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/13.3/Deprecation-104773-CustomFluidViewsAndExtbase.html

Deprecation: #104773 - Custom Fluid views and Extbase

See 104773

Description

These classes have been marked as deprecated in TYPO3 v13 and will be
removed in v14:

  • \TYPO3\CMS\Fluid\View\StandaloneView
  • \TYPO3\CMS\Fluid\View\TemplateView
  • \TYPO3\CMS\Fluid\View\AbstractTemplateView
  • \TYPO3\CMS\Extbase\Mvc\View\ViewResolverInterface
  • \TYPO3\CMS\Extbase\Mvc\View\GenericViewResolver

This change is related to the general
View refactoring <feature-104773-1724939348>.

Impact

Using one of the above classes triggers a deprecation level log entry.

Affected installations

Instances with extensions that create view instances of
\TYPO3\CMS\Fluid\View\StandaloneView or
\TYPO3\CMS\Fluid\View\TemplateView are affected. The extension scanner
will find possible candidates.

Migration

Extensions should no longer directly instantiate own views, but should
get \TYPO3\CMS\Core\View\ViewFactoryInterface injected and use
create() to retrieve a view.

Within Extbase, ActionController->defaultViewObjectName should only be
set to Extbase JsonView if needed, or not set at all. Custom view
implementations should implement an own
\TYPO3\CMS\Core\View\ViewFactoryInterface and configure controllers to
inject an instance, or can set
$this->defaultViewObjectName = JsonView::class in a custom
__construct().

PHP-API, PartiallyScanned, ext:core

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