From 135a191cc668c3297a269d7c4fead0e8c41ddade Mon Sep 17 00:00:00 2001 From: Klimov Paul Date: Sun, 5 Jan 2014 16:23:24 +0200 Subject: [PATCH] Default name and title added to GitHub auth client. --- extensions/yii/authclient/clients/GitHub.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/extensions/yii/authclient/clients/GitHub.php b/extensions/yii/authclient/clients/GitHub.php index 57f430d..ed7b6a5 100644 --- a/extensions/yii/authclient/clients/GitHub.php +++ b/extensions/yii/authclient/clients/GitHub.php @@ -73,4 +73,20 @@ class GitHub extends OAuth2 { return $this->api('user', 'GET'); } + + /** + * @inheritdoc + */ + protected function defaultName() + { + return 'github'; + } + + /** + * @inheritdoc + */ + protected function defaultTitle() + { + return 'GitHub'; + } } \ No newline at end of file