Пример #1
0
 /**
  * Parse the Twig configuration
  *
  * @param ArrayNodeDefinition $rootNode
  */
 private function parseTwig($rootNode)
 {
     $rootNode->children()->arrayNode(PolymerConfiguration::KEY_TWIG)->addDefaultsIfNotSet()->children()->arrayNode(TwigConfiguration::KEY_TEMPLATES)->prototype("scalar")->defaultValue(TwigConfiguration::getDefault(TwigConfiguration::KEY_TEMPLATES))->end()->end()->scalarNode(TwigConfiguration::KEY_TAG)->defaultValue(TwigConfiguration::getDefault(TwigConfiguration::KEY_TAG))->end()->end()->end();
 }