yii\authclient\clients\Google::init PHP Méthode

init() public méthode

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

Usage Example

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