41 lines
1.1 KiB
PHP
Raw Normal View History

2016-07-12 00:33:55 +02:00
<?php
/*
* This file is part of the ApiDocBundle package.
*
* (c) EXSyst
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace EXSyst\Bundle\ApiDocBundle\DependencyInjection;
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('exsyst_api_doc')
->children()
->arrayNode('routes')
->info('Filter the routes that are documented')
->addDefaultsIfNotSet()
->children()
->arrayNode('path_patterns')
->example(array('^/api', '^/api(?!/admin)'))
->prototype('scalar')->end()
->end()
->end()
->end()
->end();
2016-07-12 00:33:55 +02:00
return $treeBuilder;
}
}