public function ExceptionSubscriber::__construct in New Relic 8
Same name and namespace in other branches
- 2.x src/EventSubscriber/ExceptionSubscriber.php \Drupal\new_relic_rpm\EventSubscriber\ExceptionSubscriber::__construct()
- 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\EventSubscriberCode
public function __construct(NewRelicAdapterInterface $adapter) {
$this->adapter = $adapter;
}