Elcodi\Plugin\StoreSetupWizardBundle\EventListener\DisableWizardEventListener::handle PHP Method

handle() public method

Checks if the plugin should be disabled
public handle ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent The response event
    public function handle(GetResponseEvent $event)
    {
        if ($this->plugin->isEnabled() && $this->wizardStatus->isWizardFinished()) {
            $this->plugin->setEnabled(false);
            $this->pluginObjectManager->flush($this->plugin);
        }
    }
DisableWizardEventListener