Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-new-relic-reporting
Plugin
HttpPlugin.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\NewRelicReporting\Plugin
;
7
8
use
Magento\Framework\App\Bootstrap
;
9
use
Magento\Framework\App\Http
;
10
use
Magento\NewRelicReporting\Model\Config
;
11
use
Magento\NewRelicReporting\Model\NewRelicWrapper
;
12
13
class
HttpPlugin
14
{
18
private
$config;
19
23
private
$newRelicWrapper;
24
29
public
function
__construct
(
30
Config
$config,
31
NewRelicWrapper
$newRelicWrapper
32
) {
33
$this->config =
$config
;
34
$this->newRelicWrapper = $newRelicWrapper;
35
}
36
47
public
function
beforeCatchException
(
Http
$subject,
Bootstrap
$bootstrap
, \Exception $exception)
48
{
49
if
($this->config->isNewRelicEnabled()) {
50
$this->newRelicWrapper->reportError($exception);
51
}
52
}
53
}
Magento\NewRelicReporting\Plugin
Definition:
SeparateAppsTest.php:8
Magento\TestFramework\ObjectManager\Config
Definition:
Config.php:8
Magento\NewRelicReporting\Model\NewRelicWrapper
Definition:
NewRelicWrapper.php:13
$config
$config
Definition:
fraud_order.php:17
Magento\Framework\App\Http
Definition:
Http.php:22
Magento\Framework\App\Bootstrap
Definition:
Bootstrap.php:27
$bootstrap
if(defined('TESTS_MAGENTO_INSTALLATION') &&TESTS_MAGENTO_INSTALLATION==='enabled') $bootstrap
Definition:
bootstrap.php:73
Magento\NewRelicReporting\Plugin\HttpPlugin\__construct
__construct(Config $config, NewRelicWrapper $newRelicWrapper)
Definition:
HttpPlugin.php:29
Magento\NewRelicReporting\Plugin\HttpPlugin\beforeCatchException
beforeCatchException(Http $subject, Bootstrap $bootstrap, \Exception $exception)
Definition:
HttpPlugin.php:47
Magento\NewRelicReporting\Plugin\HttpPlugin
Definition:
HttpPlugin.php:13
Magento\NewRelicReporting\Model\Config
Definition:
Config.php:11
Magento\Framework\App\Http
Definition:
Context.php:6