1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 13:16:39 +02:00

Removed second param from processors

This commit is contained in:
Jordi Boggiano
2011-04-08 13:53:30 +02:00
parent 24dc9e91d0
commit ea466fa848
3 changed files with 3 additions and 5 deletions

View File

@@ -59,7 +59,7 @@ abstract class AbstractHandler implements HandlerInterface
if ($this->processors) {
foreach ($this->processors as $processor) {
$record = call_user_func($processor, $record, $this);
$record = call_user_func($processor, $record);
}
}

View File

@@ -152,7 +152,7 @@ class Logger
}
// found at least one, process message and dispatch it
foreach ($this->processors as $processor) {
$record = call_user_func($processor, $record, $this);
$record = call_user_func($processor, $record);
}
while (isset($this->handlers[$handlerKey]) &&
false === $this->handlers[$handlerKey]->handle($record)) {

View File

@@ -11,8 +11,6 @@
namespace Monolog\Processor;
use Monolog\Handler\HandlerInterface;
/**
* Injects url/method and remote IP of the current web request in all records
*
@@ -25,7 +23,7 @@ class WebProcessor
* @param HandlerInterface $handler
* @return array
*/
public function __invoke(array $record, HandlerInterface $handler)
public function __invoke(array $record)
{
$record['extra'] = array_merge(
$record['extra'],