protected function driverKey($key) {
        if (is_object($key)) {
            $key = get_class($key);
        }
        $key = strtolower(basename($key));

        if (preg_match('`([az]+)(Db)?$`', $key, $m)) {
            $key = $m;
        }
        return $key;
    }
protected function driverKey($key) {
        if (is_object($key)) {
            $key = get_class($key);
        }
        $key = strtolower(basename($key));

        if (preg_match('`([az]+)(Db)?$`', $key, $m)) {
            $key = $m;
        }
        return $key;
    }
protected function driverKey ( $ key ) { if ( is_object ( $ key ) ) { $ key = get_class ( $ key ) ; } $ key = strtolower ( basename ( $ key ) ) ; if ( preg_match ( '`([az]+)(Db)?$`' , $ key , $ m ) ) { $ key = $ m ; } return $ key ; }
Normalize the driver name for the drivers array.

@param string|object $key The name of the driver or an instance of a database driver.
@return string Returns the driver name normalized.
Normalize the driver name for the drivers array .