protected function dispatch($method, $params)
    {
        foreach ($this->plugins as $plugin) {
            $plugin->$method(...$params);
        }
    }
protected function dispatch($method, $params)
    {
        foreach ($this->plugins as $plugin) {
            $plugin->$method(...$params);
        }
    }
protected function dispatch ( $ method , $ params ) { foreach ( $ this -> plugins as $ plugin ) { $ plugin -> $ method ( ... $ params ) ; } }
Dispatch method call to all plugins.

@param string $method method to call.
@param array $params
Dispatch method call to all plugins .