PluggableTrait
Table of Contents
- $plugins : array<string|int, mixed>
- __call() : mixed
- Plugins pass-through.
- addPlugin() : $this
- Register a plugin.
- findPlugin() : PluginInterface
- Find a specific plugin.
- invokePlugin() : mixed
- Invoke a plugin by method name.
Properties
$plugins
protected
array<string|int, mixed>
$plugins
= []
Methods
__call()
Plugins pass-through.
public
__call(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
Tags
Return values
mixed —addPlugin()
Register a plugin.
public
addPlugin(PluginInterface $plugin) : $this
Parameters
- $plugin : PluginInterface
Tags
Return values
$this —findPlugin()
Find a specific plugin.
protected
findPlugin(string $method) : PluginInterface
Parameters
- $method : string
Tags
Return values
PluginInterface —invokePlugin()
Invoke a plugin by method name.
protected
invokePlugin(string $method, array<string|int, mixed> $arguments, FilesystemInterface $filesystem) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
- $filesystem : FilesystemInterface