Skip to content

Commit

Permalink
Merge pull request #2 from carriom/patch-1
Browse files Browse the repository at this point in the history
Update DependencyInjection/Configuration.php
  • Loading branch information
bobthecow committed Mar 31, 2014
2 parents d3fc80e + 8051871 commit 3ecf54d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ public function getConfigTreeBuilder()
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('mustache');

$rootNode
->setInfo('Mustache Configuration');
// $rootNode->setInfo('Mustache Configuration');

$this->addGlobalsSection($rootNode);
$this->addMustacheOptions($rootNode);
Expand All @@ -46,7 +45,7 @@ private function addGlobalsSection(ArrayNodeDefinition $rootNode)
->children()
->arrayNode('globals')
->useAttributeAsKey('key')
->setExample(array('foo' => '"@bar"', 'pi' => 3.14))
->example(array('foo' => '"@bar"', 'pi' => 3.14))
->prototype('array')
->beforeNormalization()
->ifTrue(function($v){ return is_string($v) && 0 === strpos($v, '@'); })
Expand Down Expand Up @@ -85,8 +84,8 @@ private function addMustacheOptions(ArrayNodeDefinition $rootNode)
{
$rootNode
->children()
->scalarNode('template_class_prefix')->setExample('__Mustache_')->end()
->scalarNode('template_base_class')->setExample('Mustache_Template')->end()
->scalarNode('template_class_prefix')->example('__Mustache_')->end()
->scalarNode('template_base_class')->example('Mustache_Template')->end()
->scalarNode('cache')->defaultValue('%kernel.cache_dir%/mustache')->end()
->scalarNode('loader_id')->defaultValue('mustache.loader')->end()
->scalarNode('partials_loader_id')->defaultValue('mustache.loader')->end()
Expand Down

0 comments on commit 3ecf54d

Please sign in to comment.