47 lines
1.4 KiB
PHP
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;
|
||
|
}
|
||
|
}
|