yii\authclient\clients\Google::init PHP Method

init() public method

public init ( )
    public function init()
    {
        parent::init();
        if ($this->scope === null) {
            $this->scope = implode(' ', ['profile', 'email']);
        }
    }

Usage Example

Example #1
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     if ($this->scope === null) {
         $this->scope = implode(' ', ['profile', 'email']);
     }
 }