MediaWiki REL1_41
BufferHandler.php
Go to the documentation of this file.
1<?php
22
24use Monolog\Handler\BufferHandler as BaseBufferHandler;
25
40class BufferHandler extends BaseBufferHandler {
44 public function handle( array $record ): bool {
45 if ( !$this->initialized ) {
46 DeferredUpdates::addCallableUpdate( [ $this, 'close' ] );
47 $this->initialized = true;
48 }
49 return parent::handle( $record );
50 }
51}
if(!defined('MW_SETUP_CALLBACK'))
Definition WebStart.php:88
Defer callable updates to run later in the PHP process.
Helper class for the index.php entry point.