Documentation

PluginLoader

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

loadPlugin()

Loads the plugin contained in $file

public loadPlugin(string $file) : void
Parameters
$file : string
Return values
void

Search results