/** * @param Plugin $plugin * @param Shop $shop * @return array */ public function getPluginConfig(Plugin $plugin, Shop $shop = null) { $namespace = $this->plugins->get($plugin->getNamespace()); /** @var \Shopware_Components_Plugin_Namespace $namespace */ $config = $namespace->getConfig($plugin->getName(), $shop); return $config->toArray(); }
public function testLoadException() { $this->setExpectedException('Enlight_Exception', 'Plugin "test" not found failure'); $this->manager->get('test'); }