Ejemplo n.º 1
0
 /**
  * {@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;
 }
Ejemplo n.º 2
0
 /**
  * Register a plugin.
  *
  * @param PluginInterface $plugin
  */
 public function addPlugin(PluginInterface $plugin)
 {
     $this->plugins[$plugin->getMethod()] = $plugin;
 }