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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user