Commit 767aa76d authored by alexpott's avatar alexpott

Issue #2498269 by willzyx: Syslog is incompatible with Webprofiler - Faulty...

Issue #2498269 by willzyx: Syslog is incompatible with Webprofiler - Faulty dependency to ConfigFactory
parent 42c845a0
......@@ -7,7 +7,7 @@
namespace Drupal\syslog\Logger;
use Drupal\Core\Config\ConfigFactory;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Logger\LogMessageParserInterface;
use Drupal\Core\Logger\RfcLoggerTrait;
use Psr\Log\LoggerInterface;
......@@ -42,12 +42,12 @@ class SysLog implements LoggerInterface {
/**
* Constructs a SysLog object.
*
* @param \Drupal\Core\Config\ConfigFactory $config_factory
* @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
* The configuration factory object.
* @param \Drupal\Core\Logger\LogMessageParserInterface $parser
* The parser to use when extracting message variables.
*/
public function __construct(ConfigFactory $config_factory, LogMessageParserInterface $parser) {
public function __construct(ConfigFactoryInterface $config_factory, LogMessageParserInterface $parser) {
$this->config = $config_factory->get('syslog.settings');
$this->parser = $parser;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment