SlightPHP\DbPDO::init PHP Method

init() public method

construct
public init ( array $params = [] )
$params array
    public function init($params = array())
    {
        foreach ($params as $key => $value) {
            $this->{"_" . $key} = $value;
        }
        /**
         * fix pdo bug
         * https://bugs.php.net/bug.php?id=73475
         */
        if ($this->_persistent && $this->_password == "") {
            $this->_password = null;
        }
    }