silverstripe-framework/_config/database.yml
Sam Minnee a40812ac33 FIX: Don’t reuse DBConnector (fixes #4735)
Without this fix, multiple Database objects will use the same
DBConnector object, meaning that SilverStripe can’t connect to multiple
databases.

This fix ensures that the service cache generates new DBConnector
subclasses each time it is called.
2015-11-11 16:57:49 +13:00

23 lines
527 B
YAML

---
name: databaseconnectors
---
Injector:
MySQLPDODatabase:
class: 'MySQLDatabase'
properties:
connector: %$PDOConnector
schemaManager: %$MySQLSchemaManager
queryBuilder: %$MySQLQueryBuilder
MySQLDatabase:
class: 'MySQLDatabase'
properties:
connector: %$MySQLiConnector
schemaManager: %$MySQLSchemaManager
queryBuilder: %$MySQLQueryBuilder
MySQLiConnector:
class: 'MySQLiConnector'
type: prototype
PDOConnector:
class: 'PDOConnector'
type: prototype