Methods
getCollection()
getCollection($id)
getConnectionOptions()
getConnectionOptions($id)
getDatabase()
getDatabase($id)
getDriverOptions()
getDriverOptions($id)
Instantiate and return the MongoCollection resource
getResource(string $id) : \MongoCollection
Parameters
$id
string
Exceptions
Returns
getServer()
getServer($id)
Check if a resource exists
hasResource(string $id) : bool
Parameters
$id
string
Returns
bool
setCollection()
setCollection($id, $collection)
Parameters
$id
$collection
setConnectionOptions()
setConnectionOptions($id, array $connectionOptions)
Parameters
$id
$connectionOptions
setDatabase()
setDatabase($id, $database)
setDriverOptions()
setDriverOptions($id, array $driverOptions)
Parameters
$id
$driverOptions
Set a resource
setResource(string $id, array | \MongoCollection $resource) : \Zend\Cache\Storage\Adapter\self
Parameters
$id
string
Exceptions
Returns
\Zend\Cache\Storage\Adapter\self
setServer()
setServer($id, $server)
Properties
Registered resources
$resources : array[]