mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
23 lines
612 B
PHP
23 lines
612 B
PHP
|
<?php
|
||
|
|
||
|
namespace Nelmio\ApiBundle\DependencyInjection;
|
||
|
|
||
|
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;
|
||
|
}
|
||
|
}
|