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: #101559 - Extbase uses ext:core ViewInterface #4331

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

Deprecation: #101559 - Extbase uses ext:core ViewInterface #4331

simonschaufi opened this issue Oct 15, 2024 · 0 comments

Comments

@simonschaufi
Copy link
Collaborator

Deprecation: #101559 - Extbase uses ext:core ViewInterface

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

Deprecation: #101559 - Extbase uses ext:core ViewInterface

See 101559

Description

The default view of ext:extbase now returns a view that implements
\TYPO3\CMS\Core\View\ViewInterface and not only
\TYPO3Fluid\Fluid\View\ViewInterface anymore. This allows implementing
any view that implements \TYPO3\CMS\Core\View\ViewInterface, and frees
the direct dependency to Fluid.

The default return object is an instance of
\TYPO3\CMS\Fluid\View\FluidViewAdapter which implements all special
methods tailored for Fluid. Extbase controllers should check for
instance of this object before calling these methods, especially:

  • getRenderingContext()
  • setRenderingContext()
  • renderSection()
  • renderPartial()

Method calls not being part of \TYPO3\CMS\Core\View\ViewInterface or
the above listed method names have been marked as deprecated and will be
removed in TYPO3 v14.

Impact

Extbase controllers that extend
\TYPO3\CMS\Extbase\Mvc\Controller\ActionController and call methods
not part of \TYPO3\CMS\Core\View\ViewInterface, should test for
$view instanceof FluidViewAdapter before calling
getRenderingContext(), setRenderingContext(),
php:renderSection() and
renderPartial().

All other Fluid related methods called on $view have been marked as
deprecated and will log a deprecation level error message.

Affected installations

Instances with Extbase based extensions that call $view methods
without testing for \TYPO3\CMS\Fluid\View\FluidViewAdapter.

Migration

Methods on "old" Fluid instances were wrapper methods for
\TYPO3\CMS\Fluid\Core\Rendering\RenderingContext. Controllers should
call $view->getRenderingContext() to perform operations instead.

Fluid, PHP-API, NotScanned, ext:extbase

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