symfony-validator/ValidatorBundle/DependencyInjection/Configuration.php

25 lines
687 B
PHP
Raw Permalink Normal View History

2021-07-07 10:26:43 +02:00
<?php
namespace Bluesquare\ValidatorBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Contracts\Translation\TranslatorInterface;
class Configuration implements ConfigurationInterface
{
/**
* Generates the configuration tree builder.
*
* @return \Symfony\Component\Config\Definition\Builder\TreeBuilder The tree builder
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$treeBuilder->root('validator');
return ($treeBuilder);
}
}