<?php declare(strict_types=1); /* * This file is part of vonRotenberg Shopware API Bundle. * * (c) vonRotenberg * * @license proprietary */ namespace vonRotenberg\WmfgoCevisioBundle\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('vonrotenberg_wmfgo_cevisio'); $treeBuilder ->getRootNode() ->children() ->arrayNode('mappings') ->addDefaultsIfNotSet() ->children() ->arrayNode('properties') ->info('Shopware property mappings') ->defaultValue('') ->arrayPrototype() ->children() ->end() ->end() ->end() ->end() ; return $treeBuilder; } }