PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
Loading...
Searching...
No Matches
pocketmine\plugin\PharPluginLoader Class Reference
+ Inheritance diagram for pocketmine\plugin\PharPluginLoader:
+ Collaboration diagram for pocketmine\plugin\PharPluginLoader:

Public Member Functions

 __construct (private ThreadSafeClassLoader $loader)
 
 canLoadPlugin (string $path)
 
 getAccessProtocol ()
 
 getPluginDescription (string $file)
 
 loadPlugin (string $file)
 

Detailed Description

Handles different types of plugins

Definition at line 33 of file PharPluginLoader.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\plugin\PharPluginLoader::__construct ( private ThreadSafeClassLoader $loader)

Definition at line 34 of file PharPluginLoader.php.

Member Function Documentation

◆ canLoadPlugin()

pocketmine\plugin\PharPluginLoader::canLoadPlugin ( string $path)

Returns whether this PluginLoader can load the plugin in the given path.

Implements pocketmine\plugin\PluginLoader.

Definition at line 38 of file PharPluginLoader.php.

◆ getAccessProtocol()

pocketmine\plugin\PharPluginLoader::getAccessProtocol ( )

Returns the protocol prefix used to access files in this plugin, e.g. file://, phar://

Implements pocketmine\plugin\PluginLoader.

Definition at line 64 of file PharPluginLoader.php.

◆ getPluginDescription()

pocketmine\plugin\PharPluginLoader::getPluginDescription ( string $file)

Gets the PluginDescription from the file

Implements pocketmine\plugin\PluginLoader.

Definition at line 55 of file PharPluginLoader.php.

◆ loadPlugin()

pocketmine\plugin\PharPluginLoader::loadPlugin ( string $file)

Loads the plugin contained in $file

Implements pocketmine\plugin\PluginLoader.

Definition at line 45 of file PharPluginLoader.php.


The documentation for this class was generated from the following file: