1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 05:07:36 +02:00

Prevent Monolog from ever being introspected

Ensure the Monolog namespace is always ignored, and doesn't have to be defined in use.
This commit is contained in:
Liam Le Brun
2015-07-15 12:54:38 +01:00
parent c5b08724f4
commit 09861e1e47

View File

@@ -30,10 +30,10 @@ class IntrospectionProcessor
private $skipClassesPartials; private $skipClassesPartials;
public function __construct($level = Logger::DEBUG, array $skipClassesPartials = array('Monolog\\')) public function __construct($level = Logger::DEBUG, array $skipClassesPartials = [])
{ {
$this->level = Logger::toMonologLevel($level); $this->level = Logger::toMonologLevel($level);
$this->skipClassesPartials = $skipClassesPartials; $this->skipClassesPartials = array_merge(array['Monolog\\'], $skipClassesPartials);
} }
/** /**