public function prepareView(\Nethgui\View\ViewInterface $view)
 {
     parent::prepareView($view);
     $this->wizDecorator = $view->spawnView($this, 'Decorator');
     if (isset($this->currentAction)) {
         $nextAction = $this->getSuccessor($this->currentAction);
     } else {
         $nextAction = $this->getAction('Cover');
     }
     $this->wizDecorator['steps'] = $this->getSteps($view, $nextAction ? $nextAction->getIdentifier() : '');
     $this->wizDecorator->setTemplate('NethServer\\Template\\FirstConfigWiz');
     if ($this->getRequest()->isValidated()) {
         $this->xhtmlDecoratorParams['disableMenu'] = TRUE;
     }
 }
 public function prepareView(\Nethgui\View\ViewInterface $view)
 {
     if ($this->getRequest()->isMutation()) {
         $this->getPlatform()->setDetachedProcessCondition('success', array('location' => array('url' => $view->getModuleUrl('Modules?installSuccess'), 'freeze' => TRUE)));
         $this->getPlatform()->setDetachedProcessCondition('failure', array('location' => array('url' => $view->getModuleUrl('Modules?installFailure&taskId={taskId}'), 'freeze' => TRUE)));
     }
     parent::prepareView($view);
 }