/** * Get autoload path for a class. * * @param string|object $class * @return string */ public function pathForClass($class) { $path = Reflect::getDirectory($class); return rtrim($path, '/') . '/'; }
/** * Set the plugin autoload path. * * @return void */ public function setPath() { $this->path = Reflect::getDirectory($this); }