Generating classes with yaml files

44 views
Skip to first unread message

pc

unread,
May 10, 2012, 5:29:09 PM5/10/12
to Mandango Users
Hi All,
I'm a newbie to Mandango. I was able to test it successfully with
the simple example from the documentation, where the config classes
are set using PHP arrays. Could someone give me a small code example
or point me to documentation on how to use YAML files to set the
config classes? Note that I'm not using Symfony or any framework (I
say this because there is some documentation of using YAML when using
the Mandango bundle for the Symfony framework.)
Thanks,
PC

Pablo Díez

unread,
May 20, 2012, 11:36:00 AM5/20/12
to mandang...@googlegroups.com
Here an example using the Symfony Yaml component:

use Symfony\Component\Yaml\Yaml;

$configClasses = Yaml::parse($yamlInput);

So now you can use the config classes as usually with the mondator.

Cheers,
Pablo
Reply all
Reply to author
Forward
0 new messages