Skip to content

Commit 5f98d29

Browse files
dnahrebeckidkarlovi
authored andcommitted
install mondodb extension (mongo one is deprecated)
1 parent edf833b commit 5f98d29

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ php:
1111
- 7.0
1212
- 7.1
1313

14+
service:
15+
- mongodb
16+
1417
matrix:
1518
fast_finish: true
1619
include:
@@ -40,6 +43,7 @@ before_script:
4043
- if [ "$DEPENDENCIES" = "beta" ]; then composer config minimum-stability beta; fi;
4144
- if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then phpenv config-rm xdebug.ini; fi;
4245
- echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
46+
- echo "extension = mongodb.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
4347
- composer self-update
4448
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi;
4549
- composer update --prefer-dist --no-interaction $COMPOSER_FLAGS

composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
"phing/phing": "~2.4",
3333
"doctrine/mongodb-odm": "~1.0",
3434
"doctrine/doctrine-bundle": "~1.0",
35-
"doctrine/orm": "~2.2"
35+
"doctrine/orm": "~2.2",
36+
"ext-mongodb": "*",
37+
"phpunit/phpunit": "~4.8|~5.0"
3638
},
3739
"suggest": {
3840
"doctrine/doctrine-bundle": "*",
@@ -42,6 +44,9 @@
4244
"symfony/form" : "Needed to be able to use the AuthorizeFormType",
4345
"symfony/console": "Needed to be able to use commands"
4446
},
47+
"provide": {
48+
"ext-mongo": "^1.6.14"
49+
},
4550
"autoload": {
4651
"psr-4": { "FOS\\OAuthServerBundle\\": "" },
4752
"exclude-from-classmap": ["/Tests/"]

0 commit comments

Comments
 (0)