当我试图在symfony2中获取管理页面时,我遇到了这个错误


I have this error when i try to get the admin page in symfony2

im new with symfony2,我安装了FOSuserbundle,我进行了安全性的配置。yml和路由,创建了用户实体,但当我录制时:http://localhost/PhpProject1/web/app_dev.php,我得到这个错误:ArrayNode.php第309行出现InvalidConfigurationException:"swiftmailer.mailers.default"下无法识别的选项"fos_user">

您的app/config/config.yml中有一个错误的语法。

每个束别名必须处于相同的缩进级别,例如:

swiftmailer:
    # options
fos_user:
    # options

目前,你有这样的东西:

swiftmailer:
    # options
    fos_user:
        # options