gergelypolonkai-web-jekyll/_posts/2012-12-20-symfony-2-configuration-array-of-associative-arrays.markdown
2016-02-26 16:26:26 +01:00

772 B
Raw Blame History

layout title date tags permalink published author
post Symfony 2 Configuration Array of associative arrays 2012-12-20 12:03:23
php
symfony
/blog/2012/12/20/symfony-2-configuration-array-of-associative-arrays true
name email
Gergely Polonkai gergely@polonkai.eu

Few days ago I have struggled with a problem using Symfony2 configuration. I wanted to add the following kind of configuration to config.yml:

{% gist gergelypolonkai/30440e25f7a447730064 config.yml %}

The problem was that the stuff under transitions is dynamic, so those hc_cba and cba_hc tags can be pretty much anything. After hitting many errors, I came to the solution:

{% gist gergelypolonkai/30440e25f7a447730064 DynarrayConfiguration.php %}