DatabaseAdapterRegistry
class DatabaseAdapterRegistry (View source)
This class keeps track of the available database adapters and provides a meaning of registering community built adapters in to the installer process.
Properties
Methods
public static
autoconfigure()
Detects all _configure_database.php files and invokes them Called by ConfigureFromEnv.php
Details
static
register(array $config)
Add new adapter to the registry
static
unregister(string $class)
Unregisters a database connector by classname
static
autodiscover()
Detects all _register_database.php files and invokes them
static
autoconfigure()
Detects all _configure_database.php files and invokes them Called by ConfigureFromEnv.php
static array
get_adapters()
Return all registered adapters
static array
get_adapter(string $class)
Returns registry data for a class
static array
get_default_fields()
Retrieves default field configuration