Skip to content

Please add dynamic adapter loader by config #11001

Closed
@Kachit

Description

For example:

$config = [
'adapter' => '{adapterName}',
'host' => 'host',
'user' => 'user',
//etc...
];

/* @var Phalcon\Db\Adapter\Pdo\{AdapterName} $dbAdapter*/
$dbAdapter = Phalcon\Db\Adapter\Pdo\Factory::load($config);

This feature actual for phalcon components with multiple adapters (db, sessions, cache etc)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions