Browse files

Merge pull request #206 from WouterJ/fix_xml

Added basic support for XML
  • Loading branch information...
2 parents 1b07578 + 883d042 commit 838c4a0f9b0631b37d699d9a7ebd695707298678 @stof stof committed Dec 2, 2013
Showing with 6 additions and 0 deletions.
  1. +1 −0 DependencyInjection/Configuration.php
  2. +5 −0 DependencyInjection/KnpMenuExtension.php
View
1 DependencyInjection/Configuration.php
@@ -23,6 +23,7 @@ public function getConfigTreeBuilder()
$rootNode = $treeBuilder->root('knp_menu');
$rootNode
+ ->fixXmlConfig('provider')
->children()
->arrayNode('providers')
->addDefaultsIfNotSet()
View
5 DependencyInjection/KnpMenuExtension.php
@@ -39,4 +39,9 @@ public function load(array $configs, ContainerBuilder $container)
$container->setParameter('knp_menu.default_renderer', $config['default_renderer']);
}
+
+ public function getNamespace()
+ {
+ return 'http://knplabs.com/schema/dic/menu';
+ }
}

0 comments on commit 838c4a0

Please sign in to comment.