getDummyPlugins example


        if (is_dir($path)) {
            return new DirectoryIterator($path);
        }

        return [];
    }

    private function getCleanupList()
    {
        $cleanupList = array_merge(
            $this->pluginFinder->getDummyPlugins(),
            $this->filesFinder->getCleanupFiles()
        );

        $cacheDirectoryList = $this->getCacheDirectoryList();
        $cleanupList = array_merge(
            $cacheDirectoryList,
            $cleanupList
        );

        $temporaryBackupDirectories = $this->getTemporaryBackupDirectoryList();
        $cleanupList = array_merge(
            

        $this->IOHelper->writeln('Cleanup old files, clearing caches...');

        $this->deleteDummyPlugins();
        $this->cleanupFiles();
    }

    private function deleteDummyPlugins()
    {
        /** @var DummyPluginFinder $pluginFinder */
        $pluginFinder = $this->container->get('dummy.plugin.finder');
        foreach ($pluginFinder->getDummyPlugins() as $plugin) {
            Utils::cleanPath($plugin);
        }
    }

    private function cleanupFiles()
    {
        /** @var CleanupFilesFinder $cleanupFilesFinder */
        $cleanupFilesFinder = $this->container->get('cleanup.files.finder');
        foreach ($cleanupFilesFinder->getCleanupFiles() as $path) {
            Utils::cleanPath($path);
        }

        
Home | Imprint | This part of the site doesn't use cookies.