protected function getInstalledPluginBundles(\Symfony\Component\HttpKernel\KernelInterface $kernel)
    {
        $plugins = [];
        $bundles = $kernel->getBundles();

        foreach ($bundles as $bundle) {
            if (
                $bundle instanceof \Symfony\Component\HttpKernel\Bundle\Bundle &&
                $bundle instanceof \Elcodi\Component\Plugin\Interfaces\PluginInterface
            ) {
                $pluginNamespace = $bundle->getNamespace();
                $plugins[$pluginNamespace] = $bundle;
            }
        }

        return $plugins;
    }
protected function getInstalledPluginBundles(\Symfony\Component\HttpKernel\KernelInterface $kernel)
    {
        $plugins = [];
        $bundles = $kernel->getBundles();

        foreach ($bundles as $bundle) {
            if (
                $bundle instanceof \Symfony\Component\HttpKernel\Bundle\Bundle &&
                $bundle instanceof \Elcodi\Component\Plugin\Interfaces\PluginInterface
            ) {
                $pluginNamespace = $bundle->getNamespace();
                $plugins[$pluginNamespace] = $bundle;
            }
        }

        return $plugins;
    }
protected function getInstalledPluginBundles ( \ Symfony \ Component \ HttpKernel \ KernelInterface $ kernel ) { $ plugins = [ ] ; $ bundles = $ kernel -> getBundles ( ) ; foreach ( $ bundles as $ bundle ) { if ( $ bundle instanceof \ Symfony \ Component \ HttpKernel \ Bundle \ Bundle && $ bundle instanceof \ Elcodi \ Component \ Plugin \ Interfaces \ PluginInterface ) { $ pluginNamespace = $ bundle -> getNamespace ( ) ; $ plugins [ $ pluginNamespace ] = $ bundle ; } } return $ plugins ; }
Load installed plugin bundles and return an array with them, indexed by
their namespaces.

@return \Symfony\Component\HttpKernel\Bundle\Bundle[] Plugins installed
Load installed plugin bundles and return an array with them indexed by their namespaces .