1
0
mirror of synced 2024-11-22 04:46:07 +03:00
service-bundle/DependencyInjection/Configuration.php
2021-02-05 14:47:54 +03:00

47 lines
1.4 KiB
PHP

<?php
namespace RetailCrm\ServiceBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* Class Configuration
*
* @package RetailCrm\ServiceBundle\DependencyInjection
*/
class Configuration implements ConfigurationInterface
{
/**
* {@inheritdoc }
*/
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('retail_crm_service');
$rootNode = $treeBuilder->getRootNode();
$rootNode
->children()
->arrayNode('request_schema')
->children()
->arrayNode('callback')
->arrayPrototype()
->children()
->scalarNode('type')->isRequired()->end()
->arrayNode('params')
->isRequired()->scalarPrototype()->end()
->end()
->end()
->end()
->end()
->arrayNode('client')
->scalarPrototype()->end()
->end()
->end()
->end()
->end();
return $treeBuilder;
}
}