gergelypolonkai-web-jekyll/_posts/2012-12-20-symfony-2-configuration-array-of-associative-arrays.markdown
Gergely Polonkai 2f61b11a5a Move post code chunks to Gists
Also, remove highlight specific things from style.sass
2015-04-27 11:08:14 +02:00

23 lines
778 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
layout: post
title: "Symfony 2 Configuration Array of associative arrays"
date: 2012-12-20 12:03:23+00:00
tags: [php, symfony]
permalink: /blog/2012/12/20/symfony-2-configuration-array-of-associative-arrays
published: true
author:
name: Gergely Polonkai
email: 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 %}