Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added support for XML

  • Loading branch information...
commit 883d0426f180db1c066acf424a42542f9c240919 1 parent 1b07578
@WouterJ WouterJ authored
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';
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.