MDL-70309 libraries: upgrade mongodb integration files

This commit is contained in:
Ferran Recio 2021-01-22 14:40:59 +01:00
parent e941b105ac
commit e134a42963
3 changed files with 4 additions and 3 deletions

View file

@ -158,7 +158,7 @@ class cachestore_mongodb extends cache_store implements cache_is_configurable {
* @return bool * @return bool
*/ */
public static function are_requirements_met() { public static function are_requirements_met() {
return version_compare(phpversion('mongodb'), '1.5', 'ge'); return version_compare(phpversion('mongodb'), '1.8', 'ge');
} }
/** /**

View file

@ -7,5 +7,6 @@ Import procedure:
- Copy all the files and folders from the folder mongodb/src in the cache/stores/mongodb/MongoDB directory. - Copy all the files and folders from the folder mongodb/src in the cache/stores/mongodb/MongoDB directory.
- Copy the license file from the project root. - Copy the license file from the project root.
- Update thirdpartylibs.xml with the latest version. - Update thirdpartylibs.xml with the latest version.
- Check the minim php driver version in https://docs.mongodb.com/drivers/php#compatibility and change the value in the "are_requirements_met" method if necessary.
This version (1.5.1) requires PHP mongodb extension >= 1.6.0 This version (1.8.0) requires PHP mongodb extension >= 1.8.0

View file

@ -4,7 +4,7 @@
<location>MongoDB</location> <location>MongoDB</location>
<name>MongoDB PHP Library</name> <name>MongoDB PHP Library</name>
<license>Apache</license> <license>Apache</license>
<version>1.5.1</version> <version>1.8.0</version>
<licenseversion>2.0</licenseversion> <licenseversion>2.0</licenseversion>
</library> </library>
</libraries> </libraries>