public function equals(IntegrationSystem $integrationSystem) { if ($this->getInherit() != $integrationSystem->getInherit()) { return false; } if ($this->getFullOptions() != $integrationSystem->getFullOptions()) { return false; } if ($this->getSystem()->getId() != $integrationSystem->getSystem()->getId()) { return false; } if ($this->getIntegration() != $integrationSystem->getIntegration()) { return false; } return true; }
private function dispatchEvent(IntegrationSystem $integrationSystem) { if ($this->enableSubsystems || $integrationSystem->getSystem()->isSystem()) { $dispatcherEvent = new IntegrationSystemStoreEvent($integrationSystem); $this->get('event_dispatcher')->dispatch('leankoala.integration.store', $dispatcherEvent); } }