mirror of
https://github.com/dokuwiki/dokuwiki-plugin-dev.git
synced 2026-01-13 20:12:48 +00:00
This helps with refactoring larger plugins. The string detection is using regular expressions and may not find all strings on some occasions
36 lines
571 B
PHP
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 '';
|
|
}
|
|
|
|
}
|