You are here

public function WatchdogLogger::__construct in Service Container 7

Same name and namespace in other branches
  1. 7.2 src/Logger/WatchdogLogger.php \Drupal\service_container\Logger\WatchdogLogger::__construct()

Constructs a WatchdogLogger object.

Parameters

\Drupal\service_container\Legacy\Drupal7 $drupal7: The Drupal7 service.

File

src/Logger/WatchdogLogger.php, line 34
Contains \Drupal\service_container\Logger\WatchdogLogger.

Class

WatchdogLogger
Implements the PSR-3 logger with watchdog.

Namespace

Drupal\service_container\Logger

Code

public function __construct(Drupal7 $drupal7) {
  $this->drupal7 = $drupal7;
}