mirror of
https://github.com/Seldaek/monolog.git
synced 2025-02-24 06:52:34 +01:00
Reorder processor stack
This commit is contained in:
parent
903bbd0fd6
commit
156e2ace46
@ -70,12 +70,12 @@ abstract class AbstractHandler implements HandlerInterface
|
||||
|
||||
public function pushProcessor($callback)
|
||||
{
|
||||
$this->processors[] = $callback;
|
||||
array_unshift($this->processors, $callback);
|
||||
}
|
||||
|
||||
public function popProcessor()
|
||||
{
|
||||
return array_pop($this->processors);
|
||||
return array_shift($this->processors);
|
||||
}
|
||||
|
||||
public function setFormatter($formatter)
|
||||
|
Loading…
x
Reference in New Issue
Block a user