for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the uptime-robot bundle package.
* (c) Connect Holland.
*/
namespace ConnectHolland\UptimeRobotBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
final class Configuration implements ConfigurationInterface
{
public const CONFIG_ROOT_KEY = 'connectholland_uptime_robot';
/**
* {@inheritdoc}
public function getConfigTreeBuilder()
$treeBuilder = new TreeBuilder(self::CONFIG_ROOT_KEY);
$rootNode = $treeBuilder->getRootNode();
$rootNode
->children()
->scalarNode('api_key')
->isRequired()
->cannotBeEmpty()
->end()
;
return $treeBuilder;
}