protected function onCreate($config = []) { $client = $this->getClient(); $class = $this->getClass(); $client = new $client($this->param($config, 'accessToken'), $this->param($config, 'appSecret')); return new $class($client, $this->param($config, 'prefix')); }