Exemple #1
0
 /**
  * @ignore
  */
 public function init()
 {
     global $ipFile_baseDir, $ipFile_overrides;
     $ipFile_baseDir = null;
     //required for MultiSite when several application instances are initialized one after another
     $ipFile_overrides = null;
     //required for MultiSite when several application instances are initialized one after another
     if ($this->config) {
         $config = $this->config;
     } else {
         $config = (require $this->configPath);
     }
     require_once __DIR__ . '/Config.php';
     $config = new \Ip\Config($config);
     require_once __DIR__ . '/ServiceLocator.php';
     \Ip\ServiceLocator::setConfig($config);
     require_once __DIR__ . '/Internal/Autoloader.php';
     $autoloader = new \Ip\Autoloader();
     spl_autoload_register(array($autoloader, 'load'));
     require_once __DIR__ . '/Functions.php';
 }