aboutsummaryrefslogtreecommitdiff
path: root/src/callnotifier/CLI.php
diff options
context:
space:
mode:
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 {