Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ReportProductDeletedToNewRelic.php
Go to the documentation of this file.
1 <?php
7 
12 
17 {
21  protected $config;
22 
26  protected $newRelicWrapper;
27 
32  public function __construct(
35  ) {
36  $this->config = $config;
37  $this->newRelicWrapper = $newRelicWrapper;
38  }
39 
47  public function execute(Observer $observer)
48  {
49  if ($this->config->isNewRelicEnabled()) {
50  $this->newRelicWrapper->addCustomParameter(Config::PRODUCT_CHANGE, 'delete');
51  }
52  }
53 }