예제 #1
0
파일: browser.php 프로젝트: boltphp/core
 /**
  * load sub modules
  */
 public function load($class, $path)
 {
     if (is_array($class)) {
         array_walk($class, function ($opt) {
             call_user_func_array([$this, 'load'], $opt);
         });
         return $this;
     }
     b::requireFromPath($path);
     //        b::load($class, $path);
     return $this;
 }
예제 #2
0
파일: base.php 프로젝트: boltphp/core
 /**
  * load php files with a prefix
  *
  * @param string $prefix path prefix
  * @param string $path path
  *
  * @return self
  */
 public function load($class, $path)
 {
     if (is_array($class)) {
         array_walk($class, function ($opt) {
             call_user_func_array([$this, 'load'], $opt);
         });
         return $this;
     }
     b::requireFromPath($path);
     //        b::load($class, $path);
     return $this;
     // $this->loader->addPrefix($prefix, $path);
     // $this->loader->register();
     // return $this;
 }