aboutsummaryrefslogtreecommitdiff
path: root/src/callnotifier/CLI.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2012-07-26 07:49:09 +0200
committerChristian Weiske <cweiske@cweiske.de>2012-07-26 07:49:09 +0200
commitb618b8360a69ada6b0ca412d5d15d7ec1edb9e82 (patch)
tree56f51cc63a62fc106633d7b4bde1ef3e41e80041 /src/callnotifier/CLI.php
parente60135e26ab4b374642f6f9293ddcac26adcacc8 (diff)
downloadauerswald-callnotifier-b618b8360a69ada6b0ca412d5d15d7ec1edb9e82.tar.gz
auerswald-callnotifier-b618b8360a69ada6b0ca412d5d15d7ec1edb9e82.zip
introduce separate log object and callmonitor
Diffstat (limited to 'src/callnotifier/CLI.php')
-rw-r--r--src/callnotifier/CLI.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/callnotifier/CLI.php b/src/callnotifier/CLI.php
index 55f7f71..5fdde92 100644
--- a/src/callnotifier/CLI.php
+++ b/src/callnotifier/CLI.php
@@ -23,15 +23,19 @@ class CLI
$this->fillConfig($this->config, $result);
- $handler = new MessageHandler($this->config);
+ $log = new Log();
if ($result->options['debug'] || $result->options['debugEdss1']) {
$debugLogger = new Logger_Debug();
- $handler->addLogger($debugLogger, '*');
+ $log->addLogger($debugLogger, '*');
if ($result->options['debugEdss1']) {
$debugLogger->edss1MsgOnly = true;
}
}
+ $callMonitor = new CallMonitor($this->config, $log);
+
+ $handler = new MessageHandler($this->config, $log, $callMonitor);
+
if ($this->config->replayFile !== null) {
$sourceClass = 'callnotifier\Source_File';
} else {