Exemplo n.º 1
0
 public function init()
 {
     // check if SimpleXML available
     if (!function_exists('simplexml_load_file')) {
         throw new \RuntimeException('SimpleXML not available.');
     }
     return parent::init();
 }
Exemplo n.º 2
0
 public function init()
 {
     if (!function_exists('simplexml_load_file')) {
         throw new \RuntimeException('SimpleXML not available.');
     }
     if (!class_exists('mite')) {
         require FRANKLIN_ROOT . '/vendor/thomasklein/mite/mite.php';
     }
     if (empty($this->api)) {
         $this->api = \mite::getInstance();
         $this->api->init($this->config->api_key, $this->config->subdomain, 'franklin/0.3');
     }
     return parent::init();
 }