2012-04-12 20:34:19 +02:00
|
|
|
<?php
|
|
|
|
|
2012-04-13 10:05:32 +02:00
|
|
|
namespace Nelmio\ApiDocBundle\DependencyInjection;
|
2012-04-12 20:34:19 +02:00
|
|
|
|
|
|
|
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|
|
|
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
|
|
|
|
use Symfony\Component\Config\Definition\ConfigurationInterface;
|
|
|
|
|
|
|
|
class Configuration implements ConfigurationInterface
|
|
|
|
{
|
|
|
|
public function getConfigTreeBuilder()
|
|
|
|
{
|
|
|
|
$treeBuilder = new TreeBuilder();
|
|
|
|
$treeBuilder
|
|
|
|
->root('nelmio_api_doc')
|
|
|
|
->children()
|
|
|
|
->scalarNode('name')->defaultValue('API documentation')->end()
|
|
|
|
;
|
|
|
|
|
|
|
|
return $treeBuilder;
|
|
|
|
}
|
|
|
|
}
|