Files
dokuwiki-plugin-dev/_test/NullLogger.php
Andreas Gohr 5586e97bc4 added cleanLang command
This helps with refactoring larger plugins. The string detection is
using regular expressions and may not find all strings on some occasions
2022-03-14 16:02:45 +01:00

36 lines
571 B
PHP

<?php
namespace dokuwiki\plugin\dev\test;
use splitbrain\phpcli\CLI;
use splitbrain\phpcli\Options;
/**
* Does nothing
*/
class NullLogger extends CLI
{
/** @inheritdoc */
public function __construct($autocatch = true)
{
parent::__construct(false);
}
/** @inheritdoc */
protected function setup(Options $options)
{
}
/** @inheritdoc */
protected function main(Options $options)
{
}
/** @inheritdoc */
public function log($level, $message, array $context = array())
{
return '';
}
}