Review main Merged

69307[TASK] Simplify extension manager xml parser

Christian Kuhn CR +2 V +2 Expert +504 −1072 updated 05/28/21, 09:07

Commit message

When dealing with TER extensions in the extension manager,
the TER provides an XML file with extension details that
are parsed and loaded into a database table.

When this has been added a long time ago, two XML parsers
have been added together with a factory to select one.

Since PHP extension 'xml' is a required TYPO3 extension
since a lot of core versions, always the first parser
did the job.

The patch removes the legacy parser and the factory,
injects the parser via DI to the consuming class, merges
the abstract parser class into the now single parser,
moves the namespace, and refactors the
class towards PHP strict typing.

This leads to a significantly simplified codebase, much
easier to maintain and adapt.

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 8