From d9c239d947dc1376ad4b95a78f22cb7c9ba25285 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Mon, 27 Oct 2014 19:25:03 +0100 Subject: [PATCH] add XML schema definition for the DebugBundle --- .../DependencyInjection/DebugExtension.php | 16 ++++++++++++++++ .../Resources/config/schema/debug-1.0.xsd | 13 +++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 src/Symfony/Bundle/DebugBundle/Resources/config/schema/debug-1.0.xsd diff --git a/src/Symfony/Bundle/DebugBundle/DependencyInjection/DebugExtension.php b/src/Symfony/Bundle/DebugBundle/DependencyInjection/DebugExtension.php index 23e9d0c96c4c..d5c4fd93d1fa 100644 --- a/src/Symfony/Bundle/DebugBundle/DependencyInjection/DebugExtension.php +++ b/src/Symfony/Bundle/DebugBundle/DependencyInjection/DebugExtension.php @@ -38,4 +38,20 @@ public function load(array $configs, ContainerBuilder $container) ->addMethodCall('setMaxItems', array($config['max_items'])) ->addMethodCall('setMaxString', array($config['max_string_length'])); } + + /** + * {@inheritdoc} + */ + public function getXsdValidationBasePath() + { + return __DIR__.'/../Resources/config/schema'; + } + + /** + * {@inheritdoc} + */ + public function getNamespace() + { + return 'http://symfony.com/schema/dic/debug'; + } } diff --git a/src/Symfony/Bundle/DebugBundle/Resources/config/schema/debug-1.0.xsd b/src/Symfony/Bundle/DebugBundle/Resources/config/schema/debug-1.0.xsd new file mode 100644 index 000000000000..0530a880e458 --- /dev/null +++ b/src/Symfony/Bundle/DebugBundle/Resources/config/schema/debug-1.0.xsd @@ -0,0 +1,13 @@ + + + + + + + + + +