Propel 2 API
Class

Propel\Runtime\Adapter\AdapterFactory

class AdapterFactory

Factory for Adapter classes.

Methods

static AdapterInterface create(string $driver)

Creates a new instance of the database adapter associated with the specified Propel driver.

Details

at line 30
static public AdapterInterface create(string $driver)

Creates a new instance of the database adapter associated with the specified Propel driver.

Parameters

string $driver The name of the Propel driver to create a new adapter instance for or a shorter form adapter key.

Return Value

AdapterInterface An instance of a Propel database adapter.

Exceptions

InvalidArgumentException If the adapter could not be instantiated.