src/PHPDish/Bundle/CoreBundle/Application/Plugin/Finder/PluginFinder.php
public function findAll()
    {
        if (!file_exists($this->installedJson)) {
            return [];
        }
        $installed = \GuzzleHttp\json_decode(file_get_contents($this->installedJson), true);
        foreach ($installed as $package) {
            if (
                !isset($package['type'])
                || $package['type'] !== 'phpdish-plugin'
                || !isset($package['extra']['phpdish']['class'])
                || !class_exists($package['extra']['phpdish']['class'])
            ) {
                continue;
            }
            $pluginClass = $package['extra']['phpdish']['class'];
            $this->plugins[] = $this->initializePlugin($pluginClass);
        }
        return $this->plugins;
    }
public function findAll()
    {
        if (!file_exists($this->installedJson)) {
            return [];
        }
        $installed = \GuzzleHttp\json_decode(file_get_contents($this->installedJson), true);
        foreach ($installed as $package) {
            if (
                !isset($package['type'])
                || $package['type'] !== 'phpdish-plugin'
                || !isset($package['extra']['phpdish']['class'])
                || !class_exists($package['extra']['phpdish']['class'])
            ) {
                continue;
            }
            $pluginClass = $package['extra']['phpdish']['class'];
            $this->plugins[] = $this->initializePlugin($pluginClass);
        }
        return $this->plugins;
    }
{@inheritdoc}