将代码点火器与哨兵 2 集成时出错


Error occured while integrating Codeigniter with Sentry 2

我只是按照以下链接的说明进行操作,但在将 Sentry 2 与 Codeigniter 3 集成时出现此错误。

链接: https://cartalyst.com/manual/sentry/2.1#configuration

遇到 PHP 错误

严重性:警告
消息:未找到
类"Cartalyst''Sentry''Facades''CI''Sentry" 文件名:配置/配置.php
行号:513

回溯:

文件: C:''wamp''www''codeigniter2''application''config''config.php
行: 513
功能:class_alias

文件: C:''wamp''www''codeigniter2''index.php
行: 292
功能:require_once

试试吧

在 require_once BASEPATH.'core/CodeIgniter.php'之前,将自动加载.php添加到 Codeigniter 的索引中.php;

include_once './vendor/autoload.php';

你必须运行

composer dump-autoload 

第一

嘿,

如果有人仍在寻找解决方案,请尝试实现 - https://thephpx.wordpress.com/2018/04/25/setup-sentry-on-codeigniter-3-1/