public function buildPdo(array $config) { return new \PDO('mysql:dbname=' . $config['name'] . ';host=' . $config['host'] . ';charset=utf8', $config['username'], $config['password']); }