Issue Bug Closed

#95853DI in form finishers is not working

Elias Häußler 11/02/21, 18:22 updated 10/04/22, 14:13

Description

Problem

Since #94317 dependency injection for form finishers no longer works. This is due to the fact that finishers are now constructed by GeneralUtility::makeInstance. Since the finisher services are not public, dependencies are not getting injected anymore.

Possible solution

Make form finishers public by default, e.g. by using the PublicServicePass.

Steps to reproduce

  1. Generate new form or modify existing form
  2. Add `ConfirmationFinisher` with finisher option `contentElementUid`
  3. Try to send form in Frontend
  4. You should get an exception `TypoScript object path “lib.tx_form.contentElementRendering” does not exist`

Reviews 1