Skip to content

Commit

Permalink
LogWriter: setting config must not be abstract
Browse files Browse the repository at this point in the history
Storing the given config makes sense as default action, no need to
abstract the constructor per default.

refs #7636
  • Loading branch information
Thomas-Gelf committed Nov 11, 2014
1 parent 5b95ce2 commit 629118b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion library/Icinga/Application/Logger/LogWriter.php
Expand Up @@ -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
Expand Down

0 comments on commit 629118b

Please sign in to comment.