HomeDevCentral

Add YAML support for workspace configuration

Description

Add YAML support for workspace configuration

Allow workspace configuration to be loaded in YAML format in addition to JSON.
YAML provides a more user-friendly syntax with support for anchors, references,
comments, and improved clarity.

To support YAML, the deserialization process has been revamped.
Unlike json_decode, which returns \stdClass objects by default, the Symfony
YAML parser returns the configuration as an associative array.

This update also simplifies the code where possible by leveraging
the null coalescing operator.

Ref T2164

Test Plan:

  • Tested with new workspace.yml file for nasqueron-join workspace
  • We can still load wolfplex-estate with complex auth to deserialize

Differential Revision: https://devcentral.nasqueron.org/D3825

Details

Provenance
derecksonAuthored on Wed, Oct 29, 21:10
derecksonPushed on Wed, Oct 29, 22:38
Differential Revision
D3825: Add YAML support for workspace configuration
Parents
rOBSIDIAN581f2a6a447a: Define explicitly User::$lastError
Branches
Unknown
Tags
Unknown
Tasks
T2164: Parse YAML configuration