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

init() public method

public init ( )
    public function init()
    {
        parent::init();
        if ($this->scope === null) {
            $this->scope = 'user';
        }
    }

Usage Example

Example #1
0
 /**
  * Инициализация
  */
 public function init()
 {
     parent::init();
     if ($this->scope === null) {
         $this->scope = implode(' ', ['user', 'user:email']);
     }
 }