Pheasant::__construct PHP Méthode

__construct() public méthode

Constructor
public __construct ( $dsn = null )
$dsn string a database dsn
    public function __construct($dsn = null)
    {
        $this->_connections = new \Pheasant\Database\ConnectionManager();
        // the provided dsn is a default
        if ($dsn) {
            $this->_connections->addConnection('default', $dsn);
        }
    }