Page MenuHomeDevCentral

Parse YAML configuration
Closed, ResolvedPublic

Description

Need a Keruald YAML library available in a keruald/yaml package, that can handle custom tags.

First use case will be workspace configuration for Obsidian Workspace:

orbeonDatabase:
  engine: Keruald\Database\Engines\PostgreSQLPDOEngine
  host: !env ORBEON_DB_HOST
  username: !env ORBEON_DB_USER
  password: !env ORBEON_DB_PASSWORD
  database: forms
  fetch_mode: *fetch_mode_assoc

Basically, we could work with Symfony parser, and create handlers for TaggedValue.

Parser should accept !env or !<tag:keruald.nasqueron.org,2025:env> to read $_ENV or $_SERVER

Event Timeline

dereckson triaged this task as Normal priority.Tue, Oct 28, 18:48
dereckson created this task.

No support for !<tag:keruald.nasqueron.org,2025:env> as Symfony Yaml parser truncates tag at comma.

See https://symfony.com/doc/current/reference/formats/yaml.html#unsupported-yaml-features

dereckson moved this task from Backlog to Feature requests on the Keruald board.