Make sure resetting composer also resets the IO and configuration, fixes #8224

main
Jordi Boggiano 5 years ago
parent 33759d02c4
commit 8958f40f94
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -373,6 +373,9 @@ class Application extends BaseApplication
public function resetComposer()
{
$this->composer = null;
if ($this->getIO() && method_exists($this->getIO(), 'resetAuthentications')) {
$this->getIO()->resetAuthentications();
}
}
/**

@ -29,6 +29,14 @@ abstract class BaseIO implements IOInterface, LoggerInterface
return $this->authentications;
}
/**
* {@inheritDoc}
*/
public function resetAuthentications()
{
$this->authentications = array();
}
/**
* {@inheritDoc}
*/

Loading…
Cancel
Save