private function getExistingPlugins()
    {
        $pluginsIndexed = [];
        $plugins = $this
            ->pluginRepository
            ->findAll();

        /**
         * @var Plugin $plugin
         */
        foreach ($plugins as $plugin) {
            $pluginNamespace = $plugin->getNamespace();
            $pluginsIndexed[$pluginNamespace] = $plugin;
        }

        return $pluginsIndexed;
    }
private function getExistingPlugins()
    {
        $pluginsIndexed = [];
        $plugins = $this
            ->pluginRepository
            ->findAll();

        /**
         * @var Plugin $plugin
         */
        foreach ($plugins as $plugin) {
            $pluginNamespace = $plugin->getNamespace();
            $pluginsIndexed[$pluginNamespace] = $plugin;
        }

        return $pluginsIndexed;
    }
private function getExistingPlugins ( ) { $ pluginsIndexed = [ ] ; $ plugins = $ this -> pluginRepository -> findAll ( ) ; /**
         * @var Plugin $plugin
         */ foreach ( $ plugins as $ plugin ) { $ pluginNamespace = $ plugin -> getNamespace ( ) ; $ pluginsIndexed [ $ pluginNamespace ] = $ plugin ; } return $ pluginsIndexed ; }
Load existing plugins from database and return an array with them all,
indexed by its namespace.

@return Plugin[] Plugins indexed by namespace
Load existing plugins from database and return an array with them all indexed by its namespace .