You are here

public function ExceptionSubscriber::__construct in New Relic 8

Same name and namespace in other branches
  1. 2.x src/EventSubscriber/ExceptionSubscriber.php \Drupal\new_relic_rpm\EventSubscriber\ExceptionSubscriber::__construct()
  2. 2.0.x src/EventSubscriber/ExceptionSubscriber.php \Drupal\new_relic_rpm\EventSubscriber\ExceptionSubscriber::__construct()

Constructs a subscriber.

Parameters

\Drupal\new_relic_rpm\ExtensionAdapter\NewRelicAdapterInterface $adapter: The Adapter to use when talking to the New Relic extension.

File

src/EventSubscriber/ExceptionSubscriber.php, line 29

Class

ExceptionSubscriber
Provides a way to send Exceptions to the New Relic API.

Namespace

Drupal\new_relic_rpm\EventSubscriber

Code

public function __construct(NewRelicAdapterInterface $adapter) {
  $this->adapter = $adapter;
}