for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of Sulu.
*
* (c) MASSIVE ART WebServices GmbH
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Sulu\Bundle\ValidationBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* Class that validates and merges configuration from your app/config files.
class Configuration implements ConfigurationInterface
{
* {@inheritdoc}
public function getConfigTreeBuilder()
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('sulu_validation');
$rootNode
->children()
->arrayNode('schemas')
->prototype('scalar')->end()
->end()
->scalarNode('schema_cache')
->defaultValue('%kernel.cache_dir%/schema/jsonSchemaCache.php')
->end();
return $treeBuilder;
}