You are here

public function TestSystemLoggerChannel::__construct in Drupal 10

Same name and namespace in other branches
  1. 9 core/modules/system/tests/modules/advisory_feed_test/src/TestSystemLoggerChannel.php \Drupal\advisory_feed_test\TestSystemLoggerChannel::__construct()

Constructs an AdvisoriesTestHttpClient object.

Parameters

\Drupal\Core\Logger\LoggerChannelInterface $inner_logger: The decorated logger.channel.system service.

\Drupal\Core\State\StateInterface $state: The state service.

File

core/modules/system/tests/modules/advisory_feed_test/src/TestSystemLoggerChannel.php, line 37

Class

TestSystemLoggerChannel
Provides a decorator for the 'logger.channel.system' service for testing.

Namespace

Drupal\advisory_feed_test

Code

public function __construct(LoggerChannelInterface $inner_logger, StateInterface $state) {
  $this->innerLogger = $inner_logger;
  $this->state = $state;
}