$subscribers, 'post-update-cmd' => $subscribers, ]; } /** * Activate the plugin */ public function activate(Composer $composer, IOInterface $io) { $this->composer = $composer; $this->io = $io; } /** * Install optional dependencies, if any. */ public function installOptionalDependencies(ScriptEvent $event) { $installer = new OptionalPackagesInstaller($this->composer, $this->io); $installer(); } /** * Remove the installer after project installation. */ public function uninstallPlugin(ScriptEvent $event) { $this->uninstall($event->getComposer(), $event->getIO()); } public function deactivate(Composer $composer, IOInterface $io) { } public function uninstall(Composer $composer, IOInterface $io) { $uninstall = new Uninstaller($composer, $io); $uninstall(); } }