File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/phpFastCache/Drivers/Mongodb Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 2222use MongoCursorException ;
2323use MongoDate ;
2424use phpFastCache \Core \DriverAbstract ;
25- use phpFastCache \Core \StandardPsr6StructureTrait ;
2625use phpFastCache \Entities \driverStatistic ;
2726use phpFastCache \Exceptions \phpFastCacheDriverCheckException ;
2827use phpFastCache \Exceptions \phpFastCacheDriverException ;
@@ -60,6 +59,11 @@ public function __construct(array $config = [])
6059 */
6160 public function driverCheck ()
6261 {
62+ if (class_exists ('MongoDB\Driver\Manager ' )){
63+ trigger_error ('PhpFastCache currently only support the pecl Mongo extension.<br />
64+ The Support for the MongoDB extension will be added coming soon. ' , E_USER_ERROR );
65+ }
66+
6367 return extension_loaded ('Mongodb ' );
6468 }
6569
You can’t perform that action at this time.
0 commit comments