Make sure resetting composer also resets the IO and configuration, fixes #8224
parent
33759d02c4
commit
8958f40f94
|
@ -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…
Reference in New Issue