The documentation omits an important fact about how symfony parses YAML arrays.
In an app.yml file, if you have:
all:
servers: { host1: 9834, host2: 348 }
sfConfig::getAll() contains keys for:
- app_servers_host1
- app_servers_host2
but does not contain a key for:
which is expected to contain (based on the Spyc library, (which is parsing correctly based on my investigation)) an array such as:
array("host1" => "9834", "host2" => "348");
This fact is not documented. Nor is the workaround, which is that you must place any YAML array definition "2 levels" deep in your YAML, like so:
all:
general:
servers: { host1: 9834, host2: 348 }
now there is a key for "app_general_servers" and it's value is an array which is expected.