PluginLoader
in
Handles different types of plugins
Table of Contents
- canLoadPlugin() : bool
- Returns whether this PluginLoader can load the plugin in the given path.
- getAccessProtocol() : string
- Returns the protocol prefix used to access files in this plugin, e.g. file://, phar://
- getPluginDescription() : PluginDescription|null
- Gets the PluginDescription from the file
- loadPlugin() : void
- Loads the plugin contained in $file
Methods
canLoadPlugin()
Returns whether this PluginLoader can load the plugin in the given path.
public
canLoadPlugin(string $path) : bool
Parameters
- $path : string
Return values
bool —getAccessProtocol()
Returns the protocol prefix used to access files in this plugin, e.g. file://, phar://
public
getAccessProtocol() : string
Return values
string —getPluginDescription()
Gets the PluginDescription from the file
public
getPluginDescription(string $file) : PluginDescription|null
Parameters
- $file : string
Tags
Return values
PluginDescription|null —loadPlugin()
Loads the plugin contained in $file
public
loadPlugin(string $file) : void
Parameters
- $file : string