[MonologBundle] Only compile files if any handler is registered
This commit is contained in:
parent
59c6609aec
commit
3bca4b73e5
@ -70,20 +70,19 @@ class MonologExtension extends Extension
|
|||||||
$logger->addMethodCall('pushHandler', array(new Reference($handler['id'])));
|
$logger->addMethodCall('pushHandler', array(new Reference($handler['id'])));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$this->addClassesToCompile(array(
|
$this->addClassesToCompile(array(
|
||||||
'Monolog\\Formatter\\FormatterInterface',
|
'Monolog\\Formatter\\FormatterInterface',
|
||||||
'Monolog\\Formatter\\LineFormatter',
|
'Monolog\\Formatter\\LineFormatter',
|
||||||
'Monolog\\Handler\\HandlerInterface',
|
'Monolog\\Handler\\HandlerInterface',
|
||||||
'Monolog\\Handler\\AbstractHandler',
|
'Monolog\\Handler\\AbstractHandler',
|
||||||
'Monolog\\Handler\\StreamHandler',
|
'Monolog\\Handler\\StreamHandler',
|
||||||
'Monolog\\Handler\\FingersCrossedHandler',
|
'Monolog\\Handler\\FingersCrossedHandler',
|
||||||
'Monolog\\Handler\\TestHandler',
|
'Monolog\\Logger',
|
||||||
'Monolog\\Logger',
|
'Symfony\\Bundle\\MonologBundle\\Logger\\Logger',
|
||||||
'Symfony\\Bundle\\MonologBundle\\Logger\\Logger',
|
'Symfony\\Bundle\\MonologBundle\\Logger\\DebugHandler',
|
||||||
'Symfony\\Bundle\\MonologBundle\\Logger\\DebugHandler',
|
));
|
||||||
));
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user