File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
app/code/Magento/NewRelicReporting/Plugin Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \NewRelicReporting \Plugin ;
7
7
8
+ use Magento \Framework \App \Bootstrap ;
8
9
use Magento \Framework \App \Http ;
9
10
use Magento \NewRelicReporting \Model \Config ;
10
11
use Magento \NewRelicReporting \Model \NewRelicWrapper ;
@@ -33,7 +34,17 @@ public function __construct(
33
34
$ this ->newRelicWrapper = $ newRelicWrapper ;
34
35
}
35
36
36
- public function beforeCatchException (Http $ subject , $ bootstrap , $ exception )
37
+ /**
38
+ * Report exception to New Relic
39
+ *
40
+ * @param Http $subject
41
+ * @param Bootstrap $bootstrap
42
+ * @param \Exception $exception
43
+ * @return void
44
+ *
45
+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
46
+ */
47
+ public function beforeCatchException (Http $ subject , Bootstrap $ bootstrap , \Exception $ exception )
37
48
{
38
49
if ($ this ->config ->isNewRelicEnabled ()) {
39
50
$ this ->newRelicWrapper ->reportError ($ exception );
You can’t perform that action at this time.
0 commit comments