Skip to content

Commit 78cae99

Browse files
authored
Merge pull request #443 from jomisacu/final
Fix mongodb driver
2 parents b6fd479 + a1efaf7 commit 78cae99

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

src/phpFastCache/Drivers/Mongodb/Driver.php

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,10 @@
3030
/**
3131
* Class Driver
3232
* @package phpFastCache\Drivers
33+
* @property MongodbClient $instance Instance of driver service
3334
*/
3435
class Driver extends DriverAbstract
3536
{
36-
/**
37-
* @var MongodbClient
38-
*/
39-
public $instance;
40-
4137
/**
4238
* Driver constructor.
4339
* @param array $config
@@ -59,12 +55,7 @@ public function __construct(array $config = [])
5955
*/
6056
public function driverCheck()
6157
{
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-
67-
return extension_loaded('Mongodb') && class_exists('MongoClient');
58+
return class_exists('MongoClient');
6859
}
6960

7061
/**
@@ -220,4 +211,4 @@ public function getStats()
220211

221212
return $stats;
222213
}
223-
}
214+
}

0 commit comments

Comments
 (0)