plugin instanceof AuthenticationPlugin) { return $this->plugin; } $authType = $GLOBALS['cfg']['Server']['auth_type']; $class = 'PhpMyAdmin\\Plugins\\Auth\\Authentication' . ucfirst(strtolower($authType)); if (! class_exists($class) || ! is_subclass_of($class, AuthenticationPlugin::class)) { throw new AuthenticationPluginException( __('Invalid authentication method set in configuration:') . ' ' . $authType, ); } $this->plugin = new $class(); return $this->plugin; } }