symfony2服务定义" validator.builder"不存在

时间:2014-09-15 22:59:50

标签: symfony

我需要加载验证文件:

这是我的bundleExtension:

class ConfiguracionConfiguracionExtension extends Extension
{

public function load(array $configs, ContainerBuilder $container)
{
    $configuration = new Configuration();
    $config = $this->processConfiguration($configuration, $configs);

    $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
    $loader->load('services.yml');
    $builderDefinition = $container->getDefinition('validator.builder');
    $builderDefinition->addMethodCall('addYamlMappings', array(
        array(__DIR__.'/../Resources/config/validation/soporte/validation_soporte.yml')
    ));
}

这是我看到的错误:服务定义" validator.builder"不存在

我有symfony版本2.5.3

原谅我的英语不好,我使用翻译

0 个答案:

没有答案