MediaWiki master
BufferHandler.php
Go to the documentation of this file.
1<?php
8
10use Monolog\Handler\BufferHandler as BaseBufferHandler;
11
26class BufferHandler extends BaseBufferHandler {
30 public function handle( array $record ): bool {
31 if ( !$this->initialized ) {
32 DeferredUpdates::addCallableUpdate( $this->close( ... ) );
33 $this->initialized = true;
34 }
35 return parent::handle( $record );
36 }
37}
if(!defined('MW_SETUP_CALLBACK'))
Definition WebStart.php:68
Defer callable updates to run later in the PHP process.
Helper class for the index.php entry point.