1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-22 00:56:08 +02:00

Split interfaces and base/abstract classes into more sensible pieces

This commit is contained in:
Jordi Boggiano
2015-10-09 20:41:09 +01:00
parent 39f8a20e6d
commit 902c0c8694
17 changed files with 356 additions and 209 deletions

View File

@@ -16,8 +16,10 @@ namespace Monolog\Handler;
*
* @author Lenar Lõhmus <lenar@city.ee>
*/
class GroupHandler extends AbstractHandler
class GroupHandler extends Handler implements ProcessableHandlerInterface
{
use ProcessableHandlerTrait;
protected $handlers;
/**
@@ -56,9 +58,7 @@ class GroupHandler extends AbstractHandler
public function handle(array $record)
{
if ($this->processors) {
foreach ($this->processors as $processor) {
$record = call_user_func($processor, $record);
}
$record = $this->processRecord($record);
}
foreach ($this->handlers as $handler) {