28 lines
752 B
PHP
28 lines
752 B
PHP
<?php
|
|
|
|
namespace FOQ\ElasticsearchBundle\DependencyInjection;
|
|
|
|
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
|
|
|
|
/**
|
|
* This class contains the configuration information for the bundle
|
|
*
|
|
* This information is solely responsible for how the different configuration
|
|
* sections are normalized, and merged.
|
|
*/
|
|
class Configuration
|
|
{
|
|
/**
|
|
* Generates the configuration tree.
|
|
*
|
|
* @return \Symfony\Component\DependencyInjection\Configuration\NodeInterface
|
|
*/
|
|
public function getConfigTree()
|
|
{
|
|
$treeBuilder = new TreeBuilder();
|
|
$treeBuilder->root('foq_elasticsearch', 'array');
|
|
|
|
return $treeBuilder->buildTree();
|
|
}
|
|
}
|