/** * Initializes this component, Guzzle client, and plugin settings */ public function init() { $this->httpClient = new Client(); $this->pluginSettings = craft()->plugins->getPlugin('spamguard')->getSettings(); Craft::import('plugins.spamguard.common.SpamGuardInvalidKeyException'); parent::init(); }
/** * Init */ public function init() { parent::init(); $this->settings = craft()->plugins->getPlugin('tokenAuth')->getSettings(); }