예제 #1
0
파일: Manager.php 프로젝트: bolt/filesystem
 /**
  * {@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;
 }
예제 #2
0
 /**
  * Register a plugin.
  *
  * @param PluginInterface $plugin
  */
 public function addPlugin(PluginInterface $plugin)
 {
     $this->plugins[$plugin->getMethod()] = $plugin;
 }