for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the ChrisyueAutoJsonResponseBundle package.
*
* (c) Chrisyue <http://chrisyue.com/>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Chrisyue\Bundle\AutoJsonResponseBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
class Configuration implements ConfigurationInterface
{
/**
* {@inheritdoc}
public function getConfigTreeBuilder()
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('chrisyue_auto_json_response');
$rootNode
->children()
->arrayNode('serializer')
->canBeEnabled()
->arrayNode('default_groups')
->prototype('scalar')->end()
->end()
;
return $treeBuilder;
}