for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the FreshCommonApiBundle
*
* (c) Artem Henvald <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Fresh\CommonApiBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* Configuration.
* @author Artem Henvald <[email protected]>
class Configuration implements ConfigurationInterface
{
* {@inheritdoc}
public function getConfigTreeBuilder(): TreeBuilder
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('fresh_common_api');
$rootNode
->children()
->booleanNode('enable_json_decoder')->defaultFalse()->end()
->end();
return $treeBuilder;
}