mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-22 17:16:18 +02:00
Made the write method protected
Tests are not a good reason to make it public.
This commit is contained in:
@@ -69,6 +69,7 @@ abstract class AbstractHandler implements HandlerInterface
|
||||
$record = $this->formatter->format($record);
|
||||
|
||||
$this->write($record);
|
||||
|
||||
return false === $this->bubble;
|
||||
}
|
||||
|
||||
@@ -82,14 +83,6 @@ abstract class AbstractHandler implements HandlerInterface
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Writes the record down to the log of the implementing handler
|
||||
*
|
||||
* @param array $record
|
||||
* @return void
|
||||
*/
|
||||
abstract public function write(array $record);
|
||||
|
||||
/**
|
||||
* Closes the handler.
|
||||
*
|
||||
@@ -178,6 +171,14 @@ abstract class AbstractHandler implements HandlerInterface
|
||||
$this->close();
|
||||
}
|
||||
|
||||
/**
|
||||
* Writes the record down to the log of the implementing handler
|
||||
*
|
||||
* @param array $record
|
||||
* @return void
|
||||
*/
|
||||
abstract protected function write(array $record);
|
||||
|
||||
/**
|
||||
* Gets the default formatter.
|
||||
*
|
||||
|
Reference in New Issue
Block a user