1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-24 01:56:18 +02:00

Merge remote-tracking branch 'origin/master'

This commit is contained in:
Jordi Boggiano
2012-12-14 12:21:55 +01:00
2 changed files with 13 additions and 1 deletions

View File

@@ -29,8 +29,12 @@ class MongoDBHandler extends AbstractProcessingHandler
{
private $mongoCollection;
public function __construct(\Mongo $mongo, $database, $collection, $level = Logger::DEBUG, $bubble = true)
public function __construct($mongo, $database, $collection, $level = Logger::DEBUG, $bubble = true)
{
if (!($mongo instanceof \MongoClient || $mongo instanceof \Mongo)) {
throw new \InvalidArgumentException('MongoClient or Mongo instance required');
}
$this->mongoCollection = $mongo->selectCollection($database, $collection);
parent::__construct($level, $bubble);