getPluginDescription($path); if($description !== null){ $this->loader->addPath($description->getSrcNamespacePrefix(), "$path/src"); } } /** * Gets the PluginDescription from the file */ public function getPluginDescription(string $path) : ?PluginDescription{ $phar = new \Phar($path); if(isset($phar["plugin.yml"])){ return new PluginDescription($phar["plugin.yml"]->getContent()); } return null; } public function getAccessProtocol() : string{ return "phar://"; } }