mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-22 00:56:08 +02:00
Refactored the AbstractHandler to avoid having some dummy write() methods
This commit is contained in:
@@ -38,7 +38,6 @@ class BufferHandler extends AbstractHandler
|
||||
parent::__construct($level, $bubble);
|
||||
$this->handler = $handler;
|
||||
$this->bufferSize = $bufferSize;
|
||||
$this->bubble = $bubble;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -65,12 +64,4 @@ class BufferHandler extends AbstractHandler
|
||||
{
|
||||
$this->handler->handleBatch($this->buffer);
|
||||
}
|
||||
|
||||
/**
|
||||
* Implemented to comply with the AbstractHandler requirements. Can not be called.
|
||||
*/
|
||||
protected function write(array $record)
|
||||
{
|
||||
throw new \BadMethodCallException('This method should not be called directly on the BufferHandler.');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user