You are here

public function RequestSubscriber::__construct in Raven: Sentry Integration 3.x

Same name and namespace in other branches
  1. 8.2 src/EventSubscriber/RequestSubscriber.php \Drupal\raven\EventSubscriber\RequestSubscriber::__construct()

Constructs the request subscriber.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory object.

\Drupal\raven\Logger\Raven $logger: The logger service.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

File

src/EventSubscriber/RequestSubscriber.php, line 71

Class

RequestSubscriber
Initializes Raven logger so Sentry functions can be called.

Namespace

Drupal\raven\EventSubscriber

Code

public function __construct(ConfigFactoryInterface $config_factory = NULL, Raven $logger = NULL, TimeInterface $time = NULL) {
  $this->configFactory = $config_factory;
  $this->logger = $logger;
  $this->time = $time;
}