[DependencyInjection] fix the ValidateEnvPlaceHolderPassTest that was using a deprecated path for TreeBuilder

This commit is contained in:
Amrouche Hamza 2019-06-07 16:04:41 +02:00
parent d98dd9bd82
commit caabd92f89
No known key found for this signature in database
GPG Key ID: E45A3DA456145BC1

View File

@ -332,7 +332,7 @@ class EnvConfigurationWithoutRootNode implements ConfigurationInterface
{
public function getConfigTreeBuilder()
{
return new TreeBuilder();
return new TreeBuilder('env_extension');
}
}
@ -340,8 +340,8 @@ class ConfigurationWithArrayNodeRequiringOneElement implements ConfigurationInte
{
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$treeBuilder->root('env_extension')
$treeBuilder = new TreeBuilder('env_extension');
$treeBuilder->getRootNode()
->children()
->arrayNode('nodes')
->isRequired()