for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2018 Spomky-Labs
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace OAuth2Framework\Bundle\DependencyInjection;
use OAuth2Framework\Bundle\DependencyInjection\Component\Component;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
final class Configuration implements ConfigurationInterface
{
/**
* @var Component[]
private $sources;
* @var string
private $alias;
* Configuration constructor.
* @param string $alias
* @param Component[] $sources
public function __construct(string $alias, array $sources)
$this->alias = $alias;
$this->sources = $sources;
}
* {@inheritdoc}
public function getConfigTreeBuilder()
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root($this->alias);
foreach ($this->sources as $source) {
$source->getNodeDefinition($rootNode);
return $treeBuilder;