1
0
mirror of synced 2024-12-01 00:56:03 +03:00
service-bundle/DependencyInjection/Configuration.php
Akolzin Dmitry 7516ec60cb
JMS serializer supports (#3)
* add callback argument value resolver
* add jms serializer support
* add phpdoc
* fix FrontApiClientAuthenticator
2021-02-17 09:31:36 +03:00

61 lines
2.2 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')
->children()
->arrayNode('supports')
->arrayPrototype()
->children()
->scalarNode('type')->isRequired()->end()
->arrayNode('params')
->isRequired()->scalarPrototype()->end()
->end()
->end()
->end()
->end()
->scalarNode('serializer')
->defaultValue('retail_crm_service.symfony_serializer.adapter')
->end()
->end()
->end()
->arrayNode('client')
->children()
->arrayNode('supports')
->scalarPrototype()->end()
->end()
->scalarNode('serializer')
->defaultValue('retail_crm_service.symfony_serializer.adapter')
->end()
->end()
->end()
->end()
->end()
->end();
return $treeBuilder;
}
}