Example #1
0
 /**
  * Registers the Aimeos autoloader.
  */
 protected function registerAutoloader()
 {
     if (self::$autoloader === false) {
         spl_autoload_register(array($this, 'autoload'), true, false);
         self::$autoloader = true;
     }
     $ds = DIRECTORY_SEPARATOR;
     if (is_file(__DIR__ . $ds . 'vendor' . $ds . 'autoload.php')) {
         require __DIR__ . $ds . 'vendor' . $ds . 'autoload.php';
     }
 }
 /**
  * Registers the Aimeos autoloader.
  */
 protected function registerAutoloader()
 {
     if (self::$autoloader === false) {
         spl_autoload_register(array($this, 'autoload'), true, false);
         self::$autoloader = true;
     }
 }