Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
0 / 0 |
CRAP | |
100.00% |
0 / 0 |
| Configuration | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
0 / 0 |
| getConfigTreeBuilder | |
100.00% |
1 / 1 |
1 | |
100.00% |
0 / 0 |
|||
| <?php | |
| /** | |
| * This file is part of the Hephaistos project management API. | |
| * | |
| * As each files provides by the CSCFA, this file is licensed | |
| * under the MIT license. | |
| * | |
| * PHP version 5.6 | |
| * | |
| * @category Configuration | |
| * @package Hephaistos | |
| * @author matthieu vallance <matthieu.vallance@cscfa.fr> | |
| * @license MIT <https://opensource.org/licenses/MIT> | |
| * @link http://cscfa.fr | |
| */ | |
| namespace CSDT\CollectionsBundle\DependencyInjection; | |
| use Symfony\Component\Config\Definition\Builder\TreeBuilder; | |
| use Symfony\Component\Config\Definition\ConfigurationInterface; | |
| /** | |
| * Configuration | |
| * | |
| * This is the class that validates and merges | |
| * configuration from your app/config files and | |
| * the CSDTCollectionsBundle. | |
| * | |
| * @category Configuration | |
| * @package Hephaistos | |
| * @author matthieu vallance <matthieu.vallance@cscfa.fr> | |
| * @license MIT <https://opensource.org/licenses/MIT> | |
| * @link http://cscfa.fr | |
| * @codeCoverageIgnore | |
| */ | |
| class Configuration implements ConfigurationInterface | |
| { | |
| /** | |
| * Get config tree builder | |
| * | |
| * This method generate the configuration tree builder. | |
| * | |
| * @return TreeBuilder The tree builder | |
| */ | |
| public function getConfigTreeBuilder() | |
| { | |
| $treeBuilder = new TreeBuilder(); | |
| $treeBuilder->root('csdt_collections'); | |
| return $treeBuilder; | |
| } | |
| } |