File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public function process(ContainerBuilder $container)
54
54
case 'addYamlMappings ' :
55
55
$ metadataFactoryFactoryDefinition ->addMethodCall ($ method , $ arguments );
56
56
break ;
57
- case 'enableAnnotationMapping ' :
57
+ case 'setDoctrineAnnotationReader ' :
58
58
$ metadataFactoryFactoryDefinition ->addMethodCall ('setAnnotationReader ' , array (clone $ arguments [0 ]));
59
59
break ;
60
60
case 'setMetadataCache ' :
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ class Configuration implements ConfigurationInterface
30
30
public function getConfigTreeBuilder ()
31
31
{
32
32
$ defaultConstraintNamespaces = self ::$ defaultConstraintNamespaces ;
33
- $ treeBuilder = new TreeBuilder ();
34
- $ treeBuilder ->root ( ' phpmentors_validator ' )
33
+ $ treeBuilder = new TreeBuilder (' phpmentors_validator ' );
34
+ $ treeBuilder ->getRootNode ( )
35
35
->children ()
36
36
->arrayNode ('constraint ' )
37
37
->addDefaultsIfNotSet ()
You can’t perform that action at this time.
0 commit comments