<?php declare(strict_types=1); /* * This file is part of dacore bundle for Contao. * * (c) Benjamin Roth * * @license commercial */ namespace vossmedien\DacoreBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; class Configuration implements ConfigurationInterface { public function getConfigTreeBuilder(): TreeBuilder { $treeBuilder = new TreeBuilder('vossmedien_dacore'); $treeBuilder ->getRootNode() ->children() ->arrayNode('softgarden') ->addDefaultsIfNotSet() ->children() ->scalarNode('client_id') ->info('Your Softgarden client ID.') ->end() ->scalarNode('api_domain') ->info('Your Softgarden API domain.') ->end() ->end() ->end() ->end() ; return $treeBuilder; } }