Ejemplo n.º 1
0
 /**
  * @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();
 }
Ejemplo n.º 2
0
 public function testLoadException()
 {
     $this->setExpectedException('Enlight_Exception', 'Plugin "test" not found failure');
     $this->manager->get('test');
 }