Elcodi\Plugin\StoreSetupWizardBundle\Services\WizardStatus::isWizardFinished PHP Method

isWizardFinished() public method

Checks if the wizard has already been finished
public isWizardFinished ( ) : boolean
return boolean
    public function isWizardFinished()
    {
        return is_null($this->getNextStep());
    }

Usage Example

 /**
  * 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);
     }
 }
All Usage Examples Of Elcodi\Plugin\StoreSetupWizardBundle\Services\WizardStatus::isWizardFinished