for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the bugloos/fault-tolerance-bundle project.
* (c) Bugloos <https://bugloos.com/>
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Bugloos\FaultToleranceBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
* @author Mojtaba Gheytasi <[email protected]>
class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder(): TreeBuilder
$treeBuilder = new TreeBuilder('bugloos_fault_tolerance');
$rootNode = $treeBuilder->getRootNode();
$rootNode
->children()
->scalarNode('redis_url')
->defaultValue('')
->end()
->scalarNode('mongodb_url')
->end();
return $treeBuilder;
}