Download the PHP package contaoblackforest/contao-doctrine-dbal without Composer
On this page you can find all versions of the php package contaoblackforest/contao-doctrine-dbal. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download contaoblackforest/contao-doctrine-dbal
More information about contaoblackforest/contao-doctrine-dbal
Files in contaoblackforest/contao-doctrine-dbal
Package contao-doctrine-dbal
Short Description Doctrine DBAL Bridge for Contao Open Source CMS
License LGPL-3.0-or-later
Informations about the package contao-doctrine-dbal
Doctrine DBAL Bridge
This extension provide Doctrine DBAL in the Contao Open Source CMS.
It only provide a service $container['doctrine.connection.default']
to connect the default database with Doctrine DBAL.
To use the Doctrine Connection within the Contao Database Framework, use bit3/contao-doctrine-dbal-driver.
Use the doctrine connection
Contao hooks
$GLOBALS['TL_HOOKS']['prepareDoctrineConnection'] = function(&$connectionParameters, &$config) { ... }
Called before the connection will be established.
$GLOBALS['TL_HOOKS']['doctrineConnect'] = function(&$connection) { ... }
Called after the connection is established.
Define a custom connection
We prefer to use the dependency injection container:
Write a system/config/services.php
or system/modules/.../config/services.php
:
Configure caching
The caching implementation is defined in $container['doctrine.cache.impl.default']
(default: auto
).
By default, the caching implementation is detected by default, try this implementations in order: APC, Xcache, memcache, Redis, Array.
Possible settings are:
apc | use apc cache |
---|---|
xcache | use xcache cache |
memcache:// |
use memcache cache on |
redis:// |
use redis cache on |
redis:// |
use redis cache on |
array | use array cache |
The caching time to live is defined in $container['doctrine.cache.ttl.default']
(default: 0).
The caching key is defined in $container['doctrine.cache.key.default']
(default: contao_default_connection
).
To disable caching, set $container['doctrine.cache.profile.default'] = null;
.
All versions of contao-doctrine-dbal with dependencies
contao/core Version ^3.5.5
contao-community-alliance/composer-plugin Version ^2.0
contao-community-alliance/dependency-container Version ^1.0
contao-community-alliance/event-dispatcher Version ^1.3
doctrine/dbal Version ~2.4.0