class Configuration (View source)

Configuration class for creating a Connection.

Properties

protected array $attributes Array of attributes for this configuration instance.

Methods

callable
getLoggerCallable()

Gets the logger callable.

setLoggerCallable(callable $loggerCallable)

Set the logger callable.

string
getMongoCmd() deprecated

Get the MongoDB command prefix.

setMongoCmd(string $cmd) deprecated

Set the MongoDB command prefix.

integer
getRetryConnect()

Get the number of times to retry connection attempts after an exception.

setRetryConnect(boolean|integer $retryConnect)

Set the number of times to retry connection attempts after an exception.

integer
getRetryQuery()

Get the number of times to retry queries after an exception.

setRetryQuery(boolean|integer $retryQuery)

Set the number of times to retry queries after an exception.

Details

callable getLoggerCallable()

Gets the logger callable.

Return Value

callable

setLoggerCallable(callable $loggerCallable)

Set the logger callable.

Parameters

callable $loggerCallable

string getMongoCmd() deprecated

deprecated 1.1 No longer supported; will be removed for 1.2

Get the MongoDB command prefix.

Return Value

string

setMongoCmd(string $cmd) deprecated

deprecated 1.1 No longer supported; will be removed for 1.2

Set the MongoDB command prefix.

Parameters

string $cmd

integer getRetryConnect()

Get the number of times to retry connection attempts after an exception.

Return Value

integer

setRetryConnect(boolean|integer $retryConnect)

Set the number of times to retry connection attempts after an exception.

Parameters

boolean|integer $retryConnect

integer getRetryQuery()

Get the number of times to retry queries after an exception.

Return Value

integer

setRetryQuery(boolean|integer $retryQuery)

Set the number of times to retry queries after an exception.

Parameters

boolean|integer $retryQuery