for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the doctrineviz package
*
* Copyright (c) 2017 Pierre Hennequart
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* Feel free to edit as you please, and have fun.
* @author Pierre Hennequart <[email protected]>
*/
declare(strict_types=1);
namespace Janalis\Doctrineviz\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* This is the class that validates and merges configuration from your app/config files.
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/configuration.html}
class Configuration implements ConfigurationInterface
{
/** @var string */
private $root;
* Configuration constructor.
* @param string $root
public function __construct(string $root)
$this->root = $root;
}
* {@inheritdoc}
public function getConfigTreeBuilder(): TreeBuilder
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root($this->getRoot());
$rootNode
->children()
->end();
return $treeBuilder;
* Get configuration root.
* @return string
public function getRoot(): string
return $this->root;