Use [] or the - yaml list syntax:

all:
   my_config: [1, 2, 3, 4]

all:
  my_config:
     - 1
     - 2
     - 3
     - 4

they're equivalent
On Feb 13, 2009, at 1:41 PM, Rytis Daugirdas wrote:

> Hello,
>
> Is there a way to define arrays at the first node level of YAML? For  
> example:
>
> all:
>   my_config:
>     ...
>
> sfConfig::get('prefix_my_config'); // would return an array
>
> I really hate to add additional levels all the time that don't serve  
> any purpose except to force array parsing.
>
> Regards,
> Rytis
>
> >

--
Jacob Coby







--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to