|
|
@@ -58,6 +58,9 @@ class ErrorHandler
|
|
|
*/
|
|
|
public static function register(LoggerInterface $logger, $errorLevelMap = array(), $exceptionLevel = null, $fatalLevel = null)
|
|
|
{
|
|
|
+ //Forces the autoloader to run for LogLevel. Fixes an autoload issue at compile-time on PHP5.3. See https://github.com/Seldaek/monolog/pull/929
|
|
|
+ class_exists('\\Psr\\Log\\LogLevel', true);
|
|
|
+
|
|
|
$handler = new static($logger);
|
|
|
if ($errorLevelMap !== false) {
|
|
|
$handler->registerErrorHandler($errorLevelMap);
|