if (empty($password)) { $password =
$this->io->
askHidden('Password'
);
} } try { $this->io->
section('Community Store Authentication'
);
$this->io->
comment('Connection to store...'
);
/** @var StoreClient $storeClient */
$storeClient =
$this->container->
get(StoreClient::
class);
$token =
$storeClient->
getAccessToken($username,
$password);
$this->io->
comment('Authenticated successfully.'
);
} catch (StoreException
$e) { $this->io->
error('Login failed. Please check your credentials.'
);
exit(1
);
} return $token;
} /**
* Clear opcode caches to make sure that the
* updated plugin files are used in the following requests.
*/