container = StaticContainer::getContainer(); } /** * Activates the given plugin during an update. * * If the plugin is already activated or if any other error occurs it will be ignored. * * @param string $pluginName * @return Activate */ public function activate($pluginName) { return $this->container->make('Piwik\Updater\Migration\Plugin\Activate', array( 'pluginName' => $pluginName, )); } /** * Deactivates the given plugin during an update. * * If the plugin is already deactivated or if any other error occurs it will be ignored. * * @param string $pluginName * @return Deactivate */ public function deactivate($pluginName) { return $this->container->make('Piwik\Updater\Migration\Plugin\Deactivate', array( 'pluginName' => $pluginName, )); } /** * Uninstalls the given plugin during an update. * * If the plugin is still active or if any other error occurs it will be ignored. * * @param string $pluginName * @return Uninstall */ public function uninstall($pluginName) { return $this->container->make('Piwik\Updater\Migration\Plugin\Uninstall', array( 'pluginName' => $pluginName, )); } }