/** * Checks if the plugin should be disabled * * @param GetResponseEvent $event The response event */ public function handle(GetResponseEvent $event) { if ($this->plugin->isEnabled() && $this->wizardStatus->isWizardFinished()) { $this->plugin->setEnabled(false); $this->pluginObjectManager->flush($this->plugin); } }