Esempio n. 1
0
 /**
  * Register a plugin.
  *
  * @param PluginInterface $plugin
  *
  * @return $this
  */
 public function addPlugin(PluginInterface $plugin)
 {
     $this->plugins[$plugin->getMethod()] = $plugin;
     return $this;
 }
Esempio n. 2
0
 /**
  * Register a plugin
  *
  * @param   PluginInterface  $plugin
  * @return  $this
  */
 public function addPlugin(PluginInterface $plugin)
 {
     $plugin->setFilesystem($this);
     $method = $plugin->getMethod();
     $this->plugins[$method] = $plugin;
     return $this;
 }