/** * 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; }
/** * 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; }