Yaml错误 - 此处不允许映射值

时间:2016-03-25 15:26:33

标签: yaml snakeyaml

我试图使用yaml文件,但每当我尝试从中读取时,我得到:

Jon(3)
01-01-2016
02-01-2016
03-01-2016

Doe(2)
01-01-2016
02-01-2016

Chris(4)
01-01-2016
02-01-2016
03-01-2016
04-01-2016

yaml文件:

 Exception in thread "main" mapping values are not allowed here in "<reader>", line 7, column 19

我通过yaml解析器运行它,但它说它有效。

1 个答案:

答案 0 :(得分:1)

试试这个(双引号):

myapp_user.user.factory:
    class: MyApp2\UserBundle\User\UserFactory
    arguments: ["@myapp_user.user.config_manager"]
相关问题