MDL-70309 libraries: upgrade mongodb integration files

This commit is contained in:
Ferran Recio 2021-01-22 14:40:59 +01:00
parent 4b948f8a50
commit e161edc97a
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
*/
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 the license file from the project root.
- 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>
<name>MongoDB PHP Library</name>
<license>Apache</license>
<version>1.5.1</version>
<version>1.8.0</version>
<licenseversion>2.0</licenseversion>
</library>
</libraries>