1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 21:26:43 +02:00

write method should be protected, and protected methods after public methods

This commit is contained in:
Matt Lehner
2012-04-20 13:24:28 -04:00
parent 07338af323
commit a497704d94

View File

@@ -40,14 +40,6 @@ class GelfHandler extends AbstractProcessingHandler
$this->publisher = $publisher;
}
/**
* {@inheritDoc}
*/
protected function getDefaultFormatter()
{
return new GelfMessageFormatter();
}
/**
* {@inheritdoc}
*/
@@ -59,8 +51,16 @@ class GelfHandler extends AbstractProcessingHandler
/**
* {@inheritdoc}
*/
public function write(array $record)
protected function write(array $record)
{
$this->publisher->publish($record['formatted']);
}
/**
* {@inheritDoc}
*/
protected function getDefaultFormatter()
{
return new GelfMessageFormatter();
}
}