Skip to content

Instantly share code, notes, and snippets.

@zebba
Created April 14, 2016 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zebba/3d9febe2143e37a34a13c56e9e86d179 to your computer and use it in GitHub Desktop.
Save zebba/3d9febe2143e37a34a13c56e9e86d179 to your computer and use it in GitHub Desktop.
<?php
/**
* @inheritDoc
*/
public function getConfigTreeBuilder()
{
$treebuilder = new TreeBuilder();
$rootNode = $treebuilder->root('');
$rootNode
->children()
->arrayNode('targets')
->prototype('scalar')->end()
->end()
->end()
;
return $treebuilder;
}
{
"targets": ["foo", "bar"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment