Issue Task Resolved

#110639Use ViewFactoryInterface in BackendViewFactory

Wouter Wolters 09/06/26, 08:37 updated 09/08/26, 18:10

Description

BackendViewFactory currently depends directly on
RenderingContextFactory and manually creates a Fluid TemplateView and
FluidViewAdapter.

This bypasses the existing ViewFactoryInterface abstraction and leaves the
backend factory unnecessarily coupled to Fluid implementation details. A TODO
already indicates that the generic view factory should be used.

Change BackendViewFactory to inject ViewFactoryInterface and create the
view using ViewFactoryData. Preserve the existing template, partial and
layout path resolution, including Page TSconfig overrides.

Update affected functional tests to obtain BackendViewFactory through the
dependency injection container.

Reviews 1