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:
parent
5b95ce2695
commit
629118b590
|
@ -11,10 +11,18 @@ use Icinga\Application\Config;
|
||||||
*/
|
*/
|
||||||
abstract class LogWriter
|
abstract class LogWriter
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var Zend_Config
|
||||||
|
*/
|
||||||
|
protected $config;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new log writer initialized with the given configuration
|
* 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
|
* Log a message with the given severity
|
||||||
|
|
Loading…
Reference in New Issue