/** * Apply plugin modifications to composer * * @param Composer $composer * @param IOInterface $io */ public function activate(Composer $composer, IOInterface $io) { $this->io = $io; $this->composer = $composer; $this->filesystem = new Filesystem(); $this->config = new ProjectConfig($composer->getPackage()->getExtra()); $this->initDeployManager($composer, $io, $this->getEventManager()); $this->writeDebug('activate magento plugin'); $moduleInstaller = $this->initMagentoInstaller(new ModuleInstaller($io, $composer), $this->deployManagers['module']); $composer->getInstallationManager()->addInstaller($moduleInstaller); if (!$this->config->hasDisableCoreInstaller()) { $this->addCoreInstaller($composer, $io); } }