load() public static method

Load config from file extension dynamical
public static load ( array $config ) : Phalcon\Db\AdapterInterface
$config array Adapter config
return Phalcon\Db\AdapterInterface
Beispiel #1
0
 /**
  * @expectedException \Phalcon\Db\Exception
  * @expectedExceptionMessage Database adapter Drizzle is not supported
  */
 public function testLoadUnsupportedAdapter()
 {
     $this->testable['adapter'] = 'drizzle';
     AdaptersFactory::load($this->testable);
 }