Skip to content

Commit

Permalink
add XML schema definition for the DebugBundle
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Oct 27, 2014
1 parent 65b6594 commit d9c239d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
Expand Up @@ -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';
}
}
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema xmlns="http://symfony.com/schema/dic/debug"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://symfony.com/schema/dic/debug"
elementFormDefault="qualified">

<xsd:element name="config" type="config" />

<xsd:complexType name="config">
<xsd:attribute name="max-items" type="xsd:integer" />
<xsd:attribute name="max-string-length" type="xsd:integer" />
</xsd:complexType>
</xsd:schema>

0 comments on commit d9c239d

Please sign in to comment.