Review main Merged

76130[TASK] Make FormProtectionFactory injectable - part 2

Benni Mack CR +2 V +2 Hard +314 −186 updated 10/31/22, 09:08

Commit message

This change modifies all places in TYPO3 Core
to avoid using FormProtectionFactory::get() and use
proper DI. A new method
FormProtectionFactory->createForType(string $type)
is added.

In addition, FormProtectionFactory::set is removed
as all affected tests are moved towards injection.

The next step in this series is to deprecate the
::get() method and make a singleton out of the Factory to avoid
purgeInstances() calls.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 22