src/PHPDish/Bundle/CoreBundle/Application/Plugin/Finder/CachedPluginFinder.php
public function findAll()
    {
        if ($this->plugins) {
            return $this->plugins;
        }

        if ($this->cached) {
            foreach ($this->cache as $pluginItem) {
                if (class_exists($pluginItem['class'])) {
                    $this->plugins[] = new $pluginItem['class'];
                }
            }
        } else {
            $this->plugins = $this->decoratedFinder->findAll();
        }
        return $this->plugins;
    }
public function findAll()
    {
        if ($this->plugins) {
            return $this->plugins;
        }

        if ($this->cached) {
            foreach ($this->cache as $pluginItem) {
                if (class_exists($pluginItem['class'])) {
                    $this->plugins[] = new $pluginItem['class'];
                }
            }
        } else {
            $this->plugins = $this->decoratedFinder->findAll();
        }
        return $this->plugins;
    }
{@inheritdoc}