symfony/symfony — pull request #6338 by jmikola (2012-12-13 20:58:19+00:00)
Title: [2.1] Support PHP MongoDB driver 1.3.0+ in profiler/session classes

```
Bug fix: yes
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: #6130
License of the code: MIT
```

I don't believe this is a BC break, but just to confirm: the MongoDbSessionHandler constructor signature changed, as I removed the `Mongo` type hint.

Bug fix entails allowing MongoClient to be used by default if the new driver is available, since the original Mongo class is deprecated. I also removed the assumption about `MongoCollection::update()`'s return value, since it may be a status array now.