src/PHPDish/Bundle/CoreBundle/Application/Plugin/Cache/PluginPathsCacheWarmer.php
public function warmUp($cacheDir)
    {
        $plugins = $this->pluginFinder->findAll();
        $processed = [];
        foreach ($plugins as $plugin) {
            $processed[] = [
                'class' => get_class($plugin),
                'path' => $plugin->getRootDir()
            ];
        }
        $var = var_export($processed, true);
        $export = <<<EOT
<?php
return $var;
EOT;

        $this->writeCacheFile($cacheDir . '/phpdish_plugins.php', $export);
    }
public function warmUp($cacheDir)
    {
        $plugins = $this->pluginFinder->findAll();
        $processed = [];
        foreach ($plugins as $plugin) {
            $processed[] = [
                'class' => get_class($plugin),
                'path' => $plugin->getRootDir()
            ];
        }
        $var = var_export($processed, true);
        $export = <<<EOT
<?php
return $var;
EOT;

        $this->writeCacheFile($cacheDir . '/phpdish_plugins.php', $export);
    }
{@inheritdoc}