Esempio n. 1
0
 public function installAndActivate($name)
 {
     $plugin = $this->plugin_factory->getPluginByName($name);
     if (!$plugin) {
         $plugin = $this->installPlugin($name);
     }
     if (!$this->plugin_factory->isPluginAvailable($plugin)) {
         $this->plugin_factory->availablePlugin($plugin);
     }
     $this->site_cache->invalidatePluginBasedCaches();
 }