Sections

Class Phalcon\Db\Adapter\Pdo\Factory

extends abstract class Phalcon\Factory

implements Phalcon\FactoryInterface

Source on GitHub

Loads PDO Adapter class using ‘adapter’ option

<?php

use Phalcon\Db\Adapter\Pdo\Factory;

$options = [
    "host"     => "localhost",
    "dbname"   => "blog",
    "port"     => 3306,
    "username" => "sigma",
    "password" => "secret",
    "adapter"  => "mysql",
];
$db = Factory::load($options);

Metody

public static load (Phalcon\Config array $config)

protected static loadClass (mixed $namespace, mixed $config) inherited from Phalcon\Factory