Database adapter abstract service factory.

Allows configuring several database instances (such as writer and reader).

 Methods

Can we create an adapter by the requested name?

canCreateServiceWithName(\Zend\ServiceManager\ServiceLocatorInterface $services, string $name, string $requestedName) : bool

Parameters

$name

string

$requestedName

string

Returns

bool

Create a DB adapter

createServiceWithName(\Zend\ServiceManager\ServiceLocatorInterface $services, string $name, string $requestedName) : \Zend\Db\Adapter\Adapter

Parameters

$name

string

$requestedName

string

Returns

Get db configuration, if any

getConfig(\Zend\ServiceManager\ServiceLocatorInterface $services) : array

Parameters

Returns

array

 Properties

 

$config

$config : array