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()
|
public function resetComposer()
|
||||||
{
|
{
|
||||||
$this->composer = null;
|
$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;
|
return $this->authentications;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function resetAuthentications()
|
||||||
|
{
|
||||||
|
$this->authentications = array();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue