【问题标题】:Uncaught exception 'ReflectionException' with message 'xx\xxxx\xxx does not exist' in未捕获的异常 'ReflectionException' 与消息 'xx\xxxx\xxx 不存在'
【发布时间】:2015-09-08 18:32:59
【问题描述】:

所以我使用 并参考文档。 所以当我尝试实现SecurityServiceProvider 时,我遇到了这个消息。

Fatal error: Uncaught exception 'ReflectionException' with message 'Class Symfony\Component\Security\Http\Firewall\ContextListener does not exist' in 

这让我拉长了我的头发足够长的时间来这里发帖,在 SO。

【问题讨论】:

    标签: silex php symfony restful-authentication silex


    【解决方案1】:

    这个错误主要是因为不需要依赖。

    简单来说,这个函数的代码在你的代码库中“不存在”,所以你必须运行composer命令到require相应的包,一旦composer下载并安装了你需要的文件应该不错。

    所以就我而言,我必须运行以下 composer 命令。

    composer require symfony/security
    

    【讨论】:

      猜你喜欢
      • 2013-02-01
      • 2017-09-11
      • 2016-09-04
      • 1970-01-01
      • 2015-12-15
      • 2016-07-04
      • 2015-06-20
      • 1970-01-01
      • 2014-08-08
      相关资源
      最近更新 更多