Skip to content

Commit

Permalink
symfony#27345 Removed dev requirement for mongodb/mongodb
Browse files Browse the repository at this point in the history
travis env has ext-mongodb but appveyor doesn't

since MongoDbSessionHandler does the same i've stripped the dev requirement for mongodb/mongodb
  • Loading branch information
Joe Bennett committed May 23, 2018
1 parent 3838412 commit 1a660e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion composer.json
Expand Up @@ -92,7 +92,6 @@
"doctrine/dbal": "~2.4",
"doctrine/orm": "~2.4,>=2.4.5",
"doctrine/doctrine-bundle": "~1.4",
"mongodb/mongodb": "~1.0",
"monolog/monolog": "~1.11",
"ocramius/proxy-manager": "~0.4|~1.0|~2.0",
"predis/predis": "~1.0",
Expand Down
3 changes: 3 additions & 0 deletions src/Symfony/Component/Lock/Tests/Store/MongoDbClientTest.php
Expand Up @@ -23,6 +23,9 @@ class MongoDbClientTest extends AbstractStoreTest
public static function setupBeforeClass()
{
try {
if (!class_exists(\MongoDB\Client::class)) {
throw new \RuntimeException('The mongodb/mongodb package is required.');
}
$client = self::getMongoConnection();
$client->listDatabases();
} catch (\Exception $e) {
Expand Down

0 comments on commit 1a660e6

Please sign in to comment.