handleClearCacheOption example

$this->pluginLifecycleService->activatePlugin($plugin$context);
            ++$activatedPluginCount;

            $io->text(sprintf('Plugin "%s" has been activated successfully.', $plugin->getName()));
        }

        if ($activatedPluginCount !== 0) {
            $io->success(sprintf('Activated %d plugin(s).', $activatedPluginCount));
        }

        $this->handleClearCacheOption($input$io, 'activating');

        return self::SUCCESS;
    }
}

            $this->pluginLifecycleService->updatePlugin($plugin$context);
            ++$updatedPluginCount;

            $io->text(sprintf('Plugin "%s" has been updated successfully.', $plugin->getName()));
        }

        if ($updatedPluginCount !== 0) {
            $io->success(sprintf('Updated %d plugin(s).', $updatedPluginCount));
        }

        $this->handleClearCacheOption($input$io, 'updating');

        return self::SUCCESS;
    }
}

            }

            $io->text(sprintf($message$plugin->getName()$activationSuffix));
        }

        if ($installedPluginCount !== 0) {
            $io->success(sprintf('Installed %d plugin(s).', $installedPluginCount));
        }

        if ($activatePlugins) {
            $this->handleClearCacheOption($input$io, 'activating');
        }

        return self::SUCCESS;
    }
}
$this->pluginLifecycleService->uninstallPlugin($plugin$context$keepUserData);
            ++$uninstalledPluginCount;

            $io->text(sprintf('Plugin "%s" has been uninstalled successfully.', $plugin->getName()));
        }

        if ($uninstalledPluginCount !== 0) {
            $io->success(sprintf('Uninstalled %d plugins.', $uninstalledPluginCount));
        }

        $this->handleClearCacheOption($input$io, 'uninstalling');

        return self::SUCCESS;
    }
}
$this->pluginLifecycleService->deactivatePlugin($plugin$context);
            ++$deactivatedPluginCount;

            $io->text(sprintf('Plugin "%s" has been deactivated successfully.', $plugin->getName()));
        }

        if ($deactivatedPluginCount !== 0) {
            $io->success(sprintf('Deactivated %d plugin(s).', $deactivatedPluginCount));
        }

        $this->handleClearCacheOption($input$io, 'deactivating');

        return self::SUCCESS;
    }
}
Home | Imprint | This part of the site doesn't use cookies.