/** * * Checks to make sure the IMAP extension is available. * * @return void * */ protected function _preConfig() { parent::_preConfig(); if (!extension_loaded('imap')) { throw $this->_exception('ERR_EXTENSION_NOT_LOADED', array('extension' => 'imap')); } }
/** * * Post-construction tasks to complete object construction. * * @return void * */ protected function _postConstruct() { parent::_postConstruct(); if ($this->_config['cache']) { $this->_cache = Solar::dependency('Solar_Cache', $this->_config['cache']); } }