/** * Shopware method automatically getting called for plugin Installation * * @return boolean Indicator of success */ public function install() { $result = false; if (parent::install()) { $installer = new Shopware_Plugins_Frontend_SofortPayment_Components_Services_Setup($this); $installer->install(); $result = true; } return $result; }
/** * Performs the necessary installation steps * * @throws Exception * @return boolean */ public function install() { try { Shopware_Plugins_Frontend_PaymPaymentCreditcard_Components_WebhookService::install(); Shopware_Plugins_Frontend_PaymPaymentCreditcard_Components_LoggingManager::install(); Shopware_Plugins_Frontend_PaymPaymentCreditcard_Components_ModelHelper::install($this); $this->createPaymentMeans(); $this->_createForm(); $this->_registerController(); $this->_createEvents(); $this->_updateOrderMail(); $this->_applyBackendViewModifications(); $this->_translatePaymentNames(); $translationHelper = new Shopware_Plugins_Frontend_PaymPaymentCreditcard_Components_TranslationHelper($this->Form()); $translationHelper->createPluginConfigTranslation(); $this->solveKnownIssue(); $this->Plugin()->setActive(true); } catch (Exception $exception) { $this->uninstall(); throw new Exception($exception->getMessage()); } $installSuccess = parent::install(); return $installSuccess; }