/** * {@inheritdoc} */ public function addPlugin(PluginInterface $plugin) { $this->plugins[$plugin->getMethod()] = $plugin; // Propagate plugin to all of our filesystems foreach ($this->filesystems as $filesystem) { $filesystem->addPlugin($plugin); } return $this; }
/** * Register a plugin. * * @param PluginInterface $plugin */ public function addPlugin(PluginInterface $plugin) { $this->plugins[$plugin->getMethod()] = $plugin; }