function InitCommand::updateDependencies
1 call to InitCommand::updateDependencies()
- InitCommand::execute in vendor/
composer/ composer/ src/ Composer/ Command/ InitCommand.php
File
-
vendor/
composer/ composer/ src/ Composer/ Command/ InitCommand.php, line 607
Class
- InitCommand
- @author Justin Rainbow <justin.rainbow@gmail.com> @author Jordi Boggiano <j.boggiano@seld.be>
Namespace
Composer\CommandCode
private function updateDependencies(OutputInterface $output) : void {
try {
$updateCommand = $this->getApplication()
->find('update');
$this->getApplication()
->resetComposer();
$updateCommand->run(new ArrayInput([]), $output);
} catch (\Exception $e) {
$this->getIO()
->writeError('Could not update dependencies. Run `composer update` to see more information.');
}
}