return $pluginByName;
} /**
* @throws Exception
*
* @return array
*/
public function installPlugin(Plugin
$plugin) { $bootstrap =
$this->
getPluginBootstrap($plugin);
/** @var Shopware_Components_Plugin_Namespace $namespace */
$namespace =
$bootstrap->
Collection();
try { $result =
$namespace->
installPlugin($bootstrap);
} catch (Exception
$e) { throw new Exception(sprintf("Unable to install '%s', got exception:\n%s\n",
$plugin->
getName(),
$e->
getMessage()), 0,
$e);
} $result = \
is_bool($result) ?
['success' =>
$result] :
$result;