git.cweiske.de
/
shpub.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add bookmark command
[shpub.git]
/
src
/
shpub
/
Command
/
Connect.php
diff --git
a/src/shpub/Command/Connect.php
b/src/shpub/Command/Connect.php
index 668d7e90419a30c8001fe9f105fbfe7fd55889ee..2fd6d3800c4a11343d8c8118f6046164a5bac93a 100644
(file)
--- a/
src/shpub/Command/Connect.php
+++ b/
src/shpub/Command/Connect.php
@@
-36,9
+36,10
@@
class Command_Connect
list($redirect_uri, $socketStr) = $this->getHttpServerData();
$state = time();
list($redirect_uri, $socketStr) = $this->getHttpServerData();
$state = time();
- echo "To authenticate, open the following URL:\n"
+ Log::msg(
+ "To authenticate, open the following URL:\n"
. $this->getBrowserAuthUrl($host, $user, $redirect_uri, $state)
. $this->getBrowserAuthUrl($host, $user, $redirect_uri, $state)
-
. "\n"
;
+
)
;
$authParams = $this->startHttpServer($socketStr);
if ($authParams['state'] != $state) {
$authParams = $this->startHttpServer($socketStr);
if ($authParams['state'] != $state) {
@@
-72,7
+73,7
@@
class Command_Connect
}
$this->cfg->hosts[$hostKey] = $host;
$this->cfg->save();
}
$this->cfg->hosts[$hostKey] = $host;
$this->cfg->save();
-
echo "Server configuration $hostKey saved successfully.\n"
;
+
Log::info("Server configuration $hostKey saved successfully.")
;
}
protected function fetchAccessToken(
}
protected function fetchAccessToken(