for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace Innmind\Neo4jBundle\DependencyInjection;
use Symfony\Component\Config\Definition\{
Builder\TreeBuilder,
Builder\NodeBuilder,
ConfigurationInterface
};
class Configuration implements ConfigurationInterface
{
/**
* {@inheritdoc}
*/
public function getConfigTreeBuilder()
$treeBuilder = new TreeBuilder;
$root = $treeBuilder->root('innmind_neo4j');
$root
->children()
->arrayNode('connection')
->addDefaultsIfNotSet()
->scalarNode('host')
->defaultValue('localhost')
->end()
->scalarNode('scheme')
->defaultValue('https')
->integerNode('port')
->defaultValue(7474)
->scalarNode('user')
->defaultValue('neo4j')
->scalarNode('password')
->integerNode('timeout')
->defaultValue(60)
->arrayNode('types')
->defaultValue([])
->prototype('scalar')->end()
->scalarNode('persister')
->info('The service name to use in the unit of work to persist the entity container')
->defaultValue('innmind_neo4j.persister.delegation')
->scalarNode('metadata_configuration')
->info('The service to use to validate a metadata configuration')
->defaultValue('innmind_neo4j.metadata_builder.configuration')
->end();
return $treeBuilder;
}