Thujohn\Twitter\Twitter::reconfig PHP Метод

reconfig() публичный Метод

Set new config values for the OAuth class like different tokens.
public reconfig ( Array $config ) : void
$config Array An array containing the values that should be overwritten.
Результат void
    public function reconfig($config)
    {
        // The consumer key and secret must always be included when reconfiguring
        $config = array_merge($this->parent_config, $config);
        parent::reconfigure($config);
        return $this;
    }

Usage Example

Пример #1
0
 /**
  * Set new config values for the OAuth class like different tokens.
  *
  * @param Array $config An array containing the values that should be overwritten.
  * @return void 
  * @static 
  */
 public static function reconfig($config)
 {
     \Thujohn\Twitter\Twitter::reconfig($config);
 }