public static function adapter($name = null) { if (!$name) { if (!($names = array_keys(static::$_configurations))) { return; } $name = end($names); } return parent::adapter($name); }