Issue Epic New

#111686Run Extbase validation on symfony/validator

Alexander Schnitzler 11/30/26, 12:37 updated 11/30/26, 15:45

Description

Problem

Extbase ships its own validation framework from the Flow days (ValidatorInterface, AbstractValidator, ValidatorResolver, about 20 validators) and its own error model (Error\Result, Error, Warning, Notice). Since 14.0 Symfony constraints can be used as attributes on model properties (#106945), but they are wrapped into Extbase validators:

  • The Symfony validator is built anew on every call and without the container, so constraint validators cannot have dependencies.
  • The violation code (a UUID) is hashed into an integer.
  • Symfony’s translations are switched off.
  • Constraints cannot be used for controller action arguments, file uploads or EXT:form.

There are two ways to write a rule and two error formats, and the integration runs in the wrong direction: Symfony inside the Extbase model.

Goal

symfony/validator executes all validation in Extbase, and constraint violations are the one error model for Extbase, Fluid and EXT:form.

Extension authors must be able to rely on an API for two major versions. Therefore in v15 both worlds work completely side by side: the existing API keeps working on top of the Symfony validator and is deprecated, the new API is complete. The old API is removed in v16.

Steps

Each step is a change of its own with its own benefit:

  1. Repairs of the existing integration: placeholders, translations and dependency injection for Symfony constraints; deprecation of Warning and Notice.
  2. New API on the current engine: Extbase constraints for common rules, constraints for action arguments and for file uploads.
  3. Engine swap: models and controller arguments are validated by the Symfony validator, existing validators run through a wrapper constraint. No visible change apart from class constraints and composite constraints on models.
  4. One error model: constraint violations in controllers and Fluid, Result stays as a derived view.
  5. EXT:form: constraints as validators of form elements, shipped validators switched.
  6. Deprecation of the Extbase validators, Result and the request access in validators.

Behaviour that cannot be deprecated (cascade by runtime class, reading properties without getters, Symfony’s rule for empty strings) is not part of v15 and is decided separately for v16.

Property mapping is not part of this epic.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[TASK] Run Extbase validation on symfony/validator Resolves: #111686 Releases: main

Subtasks 3

History 3

  1. Alexander Schnitzler changed subtask #111687 11/30/26, 12:39

  2. Alexander Schnitzler changed subtask #111688 11/30/26, 12:39

  3. Alexander Schnitzler changed subtask #111689 11/30/26, 12:39