Permalink
Browse files

Added support for XML

  • Loading branch information...
1 parent 1b07578 commit 883d0426f180db1c066acf424a42542f9c240919 @wouterj wouterj committed Nov 2, 2013
Showing with 6 additions and 0 deletions.
  1. +1 −0 DependencyInjection/Configuration.php
  2. +5 −0 DependencyInjection/KnpMenuExtension.php
@@ -23,6 +23,7 @@ public function getConfigTreeBuilder()
$rootNode = $treeBuilder->root('knp_menu');
$rootNode
+ ->fixXmlConfig('provider')
->children()
->arrayNode('providers')
->addDefaultsIfNotSet()
@@ -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 883d042

Please sign in to comment.