X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fdebug%2Flogger%2FNullSpi.php;h=a82d2c4c22edb5a7d4e9d8237fec83e10e45ad76;hb=d864012f338917db791c234675ab7a5b427ade98;hp=617842cc8ffcbaa07cf5b58ffeef98dec8c3d4a2;hpb=51ca723d00581b4c12f74e690f719e0f806c9329;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/debug/logger/NullSpi.php b/includes/debug/logger/NullSpi.php index 617842cc8f..a82d2c4c22 100644 --- a/includes/debug/logger/NullSpi.php +++ b/includes/debug/logger/NullSpi.php @@ -18,24 +18,27 @@ * @file */ +namespace MediaWiki\Logger; + +use Psr\Log\NullLogger; /** - * MWLoggerFactory service provider that creates \Psr\Log\NullLogger + * LoggerFactory service provider that creates \Psr\Log\NullLogger * instances. A NullLogger silently discards all log events sent to it. * * Usage: * @code * $wgMWLoggerDefaultSpi = array( - * 'class' => 'MWLoggerNullSpi', + * 'class' => '\\MediaWiki\\Logger\\NullSpi', * ); * @endcode * - * @see MWLoggerFactory + * @see \MediaWiki\Logger\LoggerFactory * @since 1.25 * @author Bryan Davis * @copyright © 2014 Bryan Davis and Wikimedia Foundation. */ -class MWLoggerNullSpi implements MWLoggerSpi { +class NullSpi implements Spi { /** * @var \Psr\Log\NullLogger $singleton @@ -44,7 +47,7 @@ class MWLoggerNullSpi implements MWLoggerSpi { public function __construct() { - $this->singleton = new \Psr\Log\NullLogger(); + $this->singleton = new NullLogger(); }