class Configuration (View source)

Configuration container for the Doctrine DBAL.

Properties

protected array $_attributes The attributes that are contained in the configuration.

Methods

setSQLLogger(SQLLogger $logger = null)

Sets the SQL logger to use. Defaults to NULL which means SQL logging is disabled.

getSQLLogger()

Gets the SQL logger that is used.

Cache
getResultCacheImpl()

Gets the cache driver implementation that is used for query result caching.

setResultCacheImpl(Cache $cacheImpl)

Sets the cache driver implementation that is used for query result caching.

setFilterSchemaAssetsExpression(string $filterExpression)

Filter schema assets expression.

string|null
getFilterSchemaAssetsExpression()

Return filter schema assets expression.

Details

setSQLLogger(SQLLogger $logger = null)

Sets the SQL logger to use. Defaults to NULL which means SQL logging is disabled.

Parameters

SQLLogger $logger

SQLLogger getSQLLogger()

Gets the SQL logger that is used.

Return Value

SQLLogger

Cache getResultCacheImpl()

Gets the cache driver implementation that is used for query result caching.

Return Value

Cache

setResultCacheImpl(Cache $cacheImpl)

Sets the cache driver implementation that is used for query result caching.

Parameters

Cache $cacheImpl

setFilterSchemaAssetsExpression(string $filterExpression)

Filter schema assets expression.

Only include tables/sequences matching the filter expression regexp in schema instances generated for the active connection when calling {AbstractSchemaManager#createSchema()}.

Parameters

string $filterExpression

string|null getFilterSchemaAssetsExpression()

Return filter schema assets expression.

Return Value

string|null