Example #1
0
 private static function getAimeos()
 {
     if (!isset(self::$aimeos)) {
         require_once dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'Bootstrap.php';
         self::$aimeos = new \Aimeos\Bootstrap(array(), false);
     }
     return self::$aimeos;
 }
Example #2
0
 private static function getAimeos()
 {
     if (!isset(self::$aimeos)) {
         require_once 'Bootstrap.php';
         spl_autoload_register('Aimeos\\Bootstrap::autoload');
         $extdir = dirname(dirname(dirname(dirname(__FILE__))));
         self::$aimeos = new \Aimeos\Bootstrap(array($extdir), false);
     }
     return self::$aimeos;
 }