for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of Goodwix Doctrine JSON ODM.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Goodwix\DoctrineJsonOdm\Bridge\Symfony\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder(): TreeBuilder
$treeBuilder = new TreeBuilder('doctrine_json_odm');
$rootNode = $treeBuilder->getRootNode();
$rootNode
->children()
->arrayNode('mapping')
->isRequired()
->arrayNode('paths')
->requiresAtLeastOneElement()
->prototype('scalar')->end()
->end()
;
return $treeBuilder;
}