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