1<?php
2
3namespace dokuwiki\plugin\letsencrypt\classes;
4
5/**
6 * Minimal logger that logs directly to command line
7 */
8class CliLogger {
9
10    protected $cli;
11
12    public function __construct(\DokuCLI $cli) {
13        $this->cli = $cli;
14    }
15
16    function __call($name, $arguments) {
17        if(is_callable(array($this->cli, $name))){
18            $this->cli->$name($arguments[0]);
19        } else {
20            $this->cli->info($arguments[0]);
21        }
22    }
23}
24