15 protected $plugins = [];
28 if ( ! method_exists($plugin,
'handle')) {
29 throw new LogicException(get_class($plugin) .
' does not have a handle method.');
32 $this->plugins[$plugin->
getMethod()] = $plugin;
48 if ( ! isset($this->plugins[$method])) {
52 return $this->plugins[$method];
69 $plugin->setFilesystem($filesystem);
70 $callback = [$plugin,
'handle'];
72 return call_user_func_array($callback, $arguments);
91 'Call to undefined method '
findPlugin($method)
Find a specific plugin.
addPlugin(PluginInterface $plugin)
Register a plugin.
__call($method, array $arguments)
Plugins pass-through.
invokePlugin($method, array $arguments, FilesystemInterface $filesystem)
Invoke a plugin by method name.
getMethod()
Get the method name.
Create styles array
The data for the language used.