function TestSystemLoggerChannel::__construct
Same name in other branches
- 9 core/modules/system/tests/modules/advisory_feed_test/src/TestSystemLoggerChannel.php \Drupal\advisory_feed_test\TestSystemLoggerChannel::__construct()
- 10 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.
Overrides LoggerChannel::__construct
File
-
core/
modules/ system/ tests/ modules/ advisory_feed_test/ src/ TestSystemLoggerChannel.php, line 39
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.