From 629118b590c64f1f18bd4e44cc700a784cb72976 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 11 Nov 2014 19:39:15 +0100 Subject: [PATCH] LogWriter: setting config must not be abstract Storing the given config makes sense as default action, no need to abstract the constructor per default. refs #7636 --- library/Icinga/Application/Logger/LogWriter.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/library/Icinga/Application/Logger/LogWriter.php b/library/Icinga/Application/Logger/LogWriter.php index c18e512578..831c96fe8a 100644 --- a/library/Icinga/Application/Logger/LogWriter.php +++ b/library/Icinga/Application/Logger/LogWriter.php @@ -11,10 +11,18 @@ */ abstract class LogWriter { + /** + * @var Zend_Config + */ + protected $config; + /** * Create a new log writer initialized with the given configuration */ - abstract public function __construct(Config $config); + public function __construct(Config $config) + { + $this->config = $config; + } /** * Log a message with the given severity