public function __construct() { parent::__construct(); $this->appid = Config::getSafe('openweathermap_appid', ''); if ($this->appid) { $this->context_params['http']['header'] = 'x-api-key: ' . $this->appid; } }
public function __construct() { parent::__construct(); }