1
0
Fork 0

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

pull/8252/head
Jordi Boggiano 2019-07-29 17:57:18 +02:00
parent 33759d02c4
commit 8958f40f94
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
2 changed files with 11 additions and 0 deletions

View File

@ -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();
}
} }
/** /**

View File

@ -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}
*/ */