HomeCode
Diffusion Zed 576ac02395dc

Promote API code to Zed\Engines\API engine

Description

Promote API code to Zed\Engines\API engine

The functions in api_helpers.php are now the Response class.
The functions in cerbere.php are now the Cerbere trait, included in Response.

To play nice with dependency injection, it implements the WithDatabase trait.
But requests are still read from the server superglobals, through code
published from Zed into Keruald OmniTools previously.

Refactor XML and string format code.

The BeautyXML code is superseded by a call to DomDocument.
As such, this change adds the dom extension as dependency.

Test Plan:
Unit tests added for new code in Zed\Engines\API\Format classes.

Details

Provenance
derecksonAuthored on Jun 23 2023, 16:11
Parents
rZEDe246871ded59: Move WithDatabase trait to Database engine
Branches
Unknown
Tags
Unknown