public function TestSystemLoggerChannel::__construct in Drupal 9
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.
Overrides LoggerChannel::__construct
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_testCode
public function __construct(LoggerChannelInterface $inner_logger, StateInterface $state) {
$this->innerLogger = $inner_logger;
$this->state = $state;
}