我需要加载验证文件:
这是我的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
原谅我的英语不好,我使用翻译