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
This commit is contained in:
Thomas Gelf 2014-11-11 19:39:15 +01:00
parent 5b95ce2695
commit 629118b590
1 changed files with 9 additions and 1 deletions

View File

@ -11,10 +11,18 @@ use Icinga\Application\Config;
*/
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