【问题标题】:I have this error when i try to get the admin page in symfony2当我尝试在 symfony2 中获取管理页面时出现此错误
【发布时间】:2016-03-08 23:55:15
【问题描述】:

我是 symfony2 的新手,我安装了 FOSuserbundle,我配置了 security.yml 和路由,创建了用户实体,但是当我使用磁带时:http://localhost/PhpProject1/web/app_dev.php,i 得到这个错误: ArrayNode.php 第 309 行中的 InvalidConfigurationException: “swiftmailer.mailers.default”下无法识别的选项“fos_user”

【问题讨论】:

    标签: php symfony fosuserbundle


    【解决方案1】:

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

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

    swiftmailer:
        # options
    
    fos_user:
        # options
    

    目前,你有类似的东西:

    swiftmailer:
        # options
        fos_user:
            # options
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-07-06
      • 1970-01-01
      • 1970-01-01
      • 2023-01-17
      • 2022-10-21
      • 1970-01-01
      • 2017-05-30
      • 1970-01-01
      相关资源
      最近更新 更多