/** * 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(), $composer->getConfig()->all()); if (!$this->config->skipSuggestComposerRepositories()) { $this->suggestComposerRepositories(); } $this->entryFactory = new EntryFactory($this->config, new DeploystrategyFactory($this->config), new PathTranslationParserFactory(new ParserFactory($this->config), $this->config)); $this->initDeployManager($composer, $io, $this->getEventManager()); $this->writeDebug('activate magento plugin'); }