path = $path; } /** * Register this library's autoloader * * @return void */ public function registerAutoloader() { $autoloaderPath = join(DIRECTORY_SEPARATOR, [$this->path, 'vendor', 'autoload.php']); if (file_exists($autoloaderPath)) { require_once $autoloaderPath; } } }