Configuration
in package
Configuration container for the Doctrine DBAL.
Table of Contents
Properties
- $autoCommit : bool
- The default auto-commit mode for connections.
- $resultCacheImpl : Cache|null
- The cache driver implementation that is used for query result caching.
- $schemaAssetsFilter : callable|null
- The callable to use to filter schema assets.
- $sqlLogger : SQLLogger|null
- The SQL logger in use. If null, SQL logging is disabled.
- $middlewares : array<string|int, Middleware>
- $resultCache : CacheItemPoolInterface|null
- The cache driver implementation that is used for query result caching.
- $schemaManagerFactory : SchemaManagerFactory|null
Methods
- __construct() : mixed
- getAutoCommit() : bool
- Returns the default auto-commit mode for connections.
- getMiddlewares() : array<string|int, Middleware>
- getResultCache() : CacheItemPoolInterface|null
- Gets the cache driver implementation that is used for query result caching.
- getResultCacheImpl() : Cache|null
- Gets the cache driver implementation that is used for query result caching.
- getSchemaAssetsFilter() : callable|null
- Returns the callable to use to filter schema assets.
- getSchemaManagerFactory() : SchemaManagerFactory|null
- getSQLLogger() : SQLLogger|null
- Gets the SQL logger that is used.
- setAutoCommit() : void
- Sets the default auto-commit mode for connections.
- setMiddlewares() : $this
- setResultCache() : void
- Sets the cache driver implementation that is used for query result caching.
- setResultCacheImpl() : void
- Sets the cache driver implementation that is used for query result caching.
- setSchemaAssetsFilter() : void
- Sets the callable to use to filter schema assets.
- setSchemaManagerFactory() : $this
- setSQLLogger() : void
- Sets the SQL logger to use. Defaults to NULL which means SQL logging is disabled.
Properties
$autoCommit
The default auto-commit mode for connections.
protected
bool
$autoCommit
= true
$resultCacheImpl
The cache driver implementation that is used for query result caching.
protected
Cache|null
$resultCacheImpl
Tags
$schemaAssetsFilter
The callable to use to filter schema assets.
protected
callable|null
$schemaAssetsFilter
$sqlLogger
The SQL logger in use. If null, SQL logging is disabled.
protected
SQLLogger|null
$sqlLogger
$middlewares
private
array<string|int, Middleware>
$middlewares
= []
$resultCache
The cache driver implementation that is used for query result caching.
private
CacheItemPoolInterface|null
$resultCache
= null
$schemaManagerFactory
private
SchemaManagerFactory|null
$schemaManagerFactory
= null
Methods
__construct()
public
__construct() : mixed
getAutoCommit()
Returns the default auto-commit mode for connections.
public
getAutoCommit() : bool
Tags
Return values
bool —True if auto-commit mode is enabled by default for connections, false otherwise.
getMiddlewares()
public
getMiddlewares() : array<string|int, Middleware>
Return values
array<string|int, Middleware>getResultCache()
Gets the cache driver implementation that is used for query result caching.
public
getResultCache() : CacheItemPoolInterface|null
Return values
CacheItemPoolInterface|nullgetResultCacheImpl()
Gets the cache driver implementation that is used for query result caching.
public
getResultCacheImpl() : Cache|null
Tags
Return values
Cache|nullgetSchemaAssetsFilter()
Returns the callable to use to filter schema assets.
public
getSchemaAssetsFilter() : callable|null
Return values
callable|nullgetSchemaManagerFactory()
public
getSchemaManagerFactory() : SchemaManagerFactory|null
Return values
SchemaManagerFactory|nullgetSQLLogger()
Gets the SQL logger that is used.
public
getSQLLogger() : SQLLogger|null
Tags
Return values
SQLLogger|nullsetAutoCommit()
Sets the default auto-commit mode for connections.
public
setAutoCommit(bool $autoCommit) : void
If a connection is in auto-commit mode, then all its SQL statements will be executed and committed as individual transactions. Otherwise, its SQL statements are grouped into transactions that are terminated by a call to either the method commit or the method rollback. By default, new connections are in auto-commit mode.
Parameters
- $autoCommit : bool
-
True to enable auto-commit mode; false to disable it
Tags
setMiddlewares()
public
setMiddlewares(array<string|int, Middleware> $middlewares) : $this
Parameters
- $middlewares : array<string|int, Middleware>
Return values
$thissetResultCache()
Sets the cache driver implementation that is used for query result caching.
public
setResultCache(CacheItemPoolInterface $cache) : void
Parameters
- $cache : CacheItemPoolInterface
setResultCacheImpl()
Sets the cache driver implementation that is used for query result caching.
public
setResultCacheImpl(Cache $cacheImpl) : void
Parameters
- $cacheImpl : Cache
Tags
setSchemaAssetsFilter()
Sets the callable to use to filter schema assets.
public
setSchemaAssetsFilter([callable|null $callable = null ]) : void
Parameters
- $callable : callable|null = null
setSchemaManagerFactory()
public
setSchemaManagerFactory(SchemaManagerFactory $schemaManagerFactory) : $this
Parameters
- $schemaManagerFactory : SchemaManagerFactory
Return values
$thissetSQLLogger()
Sets the SQL logger to use. Defaults to NULL which means SQL logging is disabled.
public
setSQLLogger([SQLLogger|null $logger = null ]) : void
Parameters
- $logger : SQLLogger|null = null