Permalink
Browse files

fixed setting of validator annotation namespace alias

  • Loading branch information...
kriswallsmith committed May 17, 2011
1 parent 1db5a22 commit f8f89ae9808fc501046d560a4e4c67d56e338006
Showing with 1 addition and 1 deletion.
  1. +1 −1 DependencyInjection/Compiler/AddValidatorNamespaceAliasPass.php
@@ -14,7 +14,7 @@ public function process(ContainerBuilder $container)
}
$loader = $container->getDefinition('validator.mapping.loader.annotation_loader');
- $args = $loader->getArguments();
+ $args = $container->getParameterBag()->resolveValue($loader->getArguments());
$args[0]['assertMongoDB'] = 'Symfony\\Bundle\\DoctrineMongoDBBundle\\Validator\\Constraints\\';
$loader->replaceArgument(0, $args[0]);

0 comments on commit f8f89ae

Please sign in to comment.