src/Plugin/PluggableTrait.php
protected function invokePlugin($method, array $arguments, FilesystemInterface $filesystem)
    {
        $plugin = $this->findPlugin($method);
        $plugin->setFilesystem($filesystem);
        $callback = [$plugin, 'handle'];

        return call_user_func_array($callback, $arguments);
    }
protected function invokePlugin($method, array $arguments, FilesystemInterface $filesystem)
    {
        $plugin = $this->findPlugin($method);
        $plugin->setFilesystem($filesystem);
        $callback = [$plugin, 'handle'];

        return call_user_func_array($callback, $arguments);
    }
protected function invokePlugin ( $ method , array $ arguments , FilesystemInterface $ filesystem ) { $ plugin = $ this -> findPlugin ( $ method ) ; $ plugin -> setFilesystem ( $ filesystem ) ; $ callback = [ $ plugin , 'handle' ] ; return call_user_func_array ( $ callback , $ arguments ) ; }
Invoke a plugin by method name.

@param string              $method
@param array               $arguments
@param FilesystemInterface $filesystem

@throws PluginNotFoundException

@return mixed
Invoke a plugin by method name .