Example application configuration: php 'components' => [ 'authClientCollection' => [ 'class' => 'yii\authclient\Collection', 'clients' => [ 'google' => [ 'class' => 'yii\authclient\clients\GoogleHybrid', 'clientId' => 'google_client_id', 'clientSecret' => 'google_client_secret', ], ], ] ... ] JavaScript button itself generated by [[yii\authclient\widgets\GooglePlusButton]] widget. If you are using [[yii\authclient\widgets\AuthChoice]] it will appear automatically. Otherwise you need to add it into your page manually. You may customize its appearance using 'widget' key at [[viewOptions]]: php 'google' => [ ... 'viewOptions' => [ 'widget' => [ 'class' => 'yii\authclient\widgets\GooglePlusButton', 'buttonHtmlOptions' => [ 'data-approvalprompt' => 'force' ], ], ], ],
См. также: Google
См. также: yii\authclient\widgets\GooglePlusButton
См. также: https://developers.google.com/+/web/signin
С версии: 2.0
Автор: Paul Klimov (klimov.paul@gmail.com)
Наследование: extends Google
 /**
  * Initializes the widget.
  */
 public function init()
 {
     if (!$this->client instanceof GoogleHybrid) {
         throw new InvalidConfigException('"' . $this->className() . '::client" must be instance of "' . GoogleHybrid::className() . '"');
     }
 }