I want to create a route, that matches on an array.
example:
Name_show:
pattern: /Name/{names}
defaults: { _controller: testBundle:Name:showNames }
where {names} holds an array of names, like:
array([1] => 'Thomas', [2] => 'Anton', [3] => 'Berta');
How to handle this? Symfony 2.0 responses with
Warning: preg_match() expects parameter 2 to be string, array given
can't find any solution in symfony doc.