Esempio n. 1
0
 /**
  * Constructor
  *
  * @param string|DSN $dsn
  */
 public function __construct($dsn)
 {
     $dsn = new DSN($dsn);
     $this->_adapter = Factory::createAdapter($dsn->getType());
     $this->_connection = $this->_adapter->connect($dsn);
 }