pathToComposerJson = $composerJsonFinder->findComposerJson(); $this->pathToComposerHome = $directoryList->getPath(DirectoryList::COMPOSER_HOME); } /** * Creates MagentoComposerApplication instance * * @return MagentoComposerApplication */ public function create() { return new MagentoComposerApplication($this->pathToComposerHome, $this->pathToComposerJson); } /** * Creates InfoCommand instance * * @return InfoCommand */ public function createInfoCommand() { return new InfoCommand($this->create()); } /** * Creates RequireUpdateDryRunCommand instance * * @return RequireUpdateDryRunCommand */ public function createRequireUpdateDryRunCommand() { return new RequireUpdateDryRunCommand($this->create(), $this->createInfoCommand()); } }