for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Savchenko\Bundle\OpenWeatherMapBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* {@inheritdoc}
*/
class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('savchenko_open_weather_map');
$rootNode
->children()
->scalarNode('api_key')
->isRequired()
->cannotBeEmpty()
->end()
;
return $treeBuilder;
}