private function getPluginInstance(
        $pluginNamespace,
        array $pluginConfiguration
    ) {
        $pluginType = $pluginConfiguration['type'];
        $pluginCategory = $pluginConfiguration['category'];
        $pluginEnabledByDefault = $pluginConfiguration['enabled_by_default'];
        unset($pluginConfiguration['type']);

        $pluginInstance = Plugin::create(
            $pluginNamespace,
            $pluginType,
            $pluginCategory,
            PluginConfiguration::create($pluginConfiguration),
            $pluginEnabledByDefault
        );

        return $pluginInstance;
    }
private function getPluginInstance(
        $pluginNamespace,
        array $pluginConfiguration
    ) {
        $pluginType = $pluginConfiguration['type'];
        $pluginCategory = $pluginConfiguration['category'];
        $pluginEnabledByDefault = $pluginConfiguration['enabled_by_default'];
        unset($pluginConfiguration['type']);

        $pluginInstance = Plugin::create(
            $pluginNamespace,
            $pluginType,
            $pluginCategory,
            PluginConfiguration::create($pluginConfiguration),
            $pluginEnabledByDefault
        );

        return $pluginInstance;
    }
private function getPluginInstance ( $ pluginNamespace , array $ pluginConfiguration ) { $ pluginType = $ pluginConfiguration [ 'type' ] ; $ pluginCategory = $ pluginConfiguration [ 'category' ] ; $ pluginEnabledByDefault = $ pluginConfiguration [ 'enabled_by_default' ] ; unset ( $ pluginConfiguration [ 'type' ] ) ; $ pluginInstance = Plugin :: create ( $ pluginNamespace , $ pluginType , $ pluginCategory , PluginConfiguration :: create ( $ pluginConfiguration ) , $ pluginEnabledByDefault ) ; return $ pluginInstance ; }
Create or update existing plugin given a set of plugin instances and the
information to create a new one.

@param string $pluginNamespace     Plugin namespace
@param array  $pluginConfiguration Plugin Configuration

@return Plugin Plugin instance
Create or update existing plugin given a set of plugin instances and the information to create a new one .