src/ScContent/Controller/Installation/InstallationController.php
public function indexAction()
    {
        // To begin the step of installation, the user must click "continue".
        if (! $this->params()->fromRoute('process')) {
            return new ViewModel();
        }

        $installation = $this->getInstallation();
        $redirect     = $this->getRedirect();
        $step         = $installation->getCurrentStep();
        $member       = $step->getCurrentMember();
        $service      = $this->getService();
        $validator    = $this->getValidator();

        foreach ($member as $item) {
            if (! $validator->isValid($item)) {
                if (! $service->process($item)) {
                    return new ViewModel([
                        'errors' => $service->getMessages()
                    ]);
                }
            }
        }
        return $this->redirect()->toUrl($redirect);
    }
public function indexAction()
    {
        // To begin the step of installation, the user must click "continue".
        if (! $this->params()->fromRoute('process')) {
            return new ViewModel();
        }

        $installation = $this->getInstallation();
        $redirect     = $this->getRedirect();
        $step         = $installation->getCurrentStep();
        $member       = $step->getCurrentMember();
        $service      = $this->getService();
        $validator    = $this->getValidator();

        foreach ($member as $item) {
            if (! $validator->isValid($item)) {
                if (! $service->process($item)) {
                    return new ViewModel([
                        'errors' => $service->getMessages()
                    ]);
                }
            }
        }
        return $this->redirect()->toUrl($redirect);
    }
public function indexAction ( ) { // To begin the step of installation, the user must click "continue". if ( ! $ this -> params ( ) -> fromRoute ( 'process' ) ) { return new ViewModel ( ) ; } $ installation = $ this -> getInstallation ( ) ; $ redirect = $ this -> getRedirect ( ) ; $ step = $ installation -> getCurrentStep ( ) ; $ member = $ step -> getCurrentMember ( ) ; $ service = $ this -> getService ( ) ; $ validator = $ this -> getValidator ( ) ; foreach ( $ member as $ item ) { if ( ! $ validator -> isValid ( $ item ) ) { if ( ! $ service -> process ( $ item ) ) { return new ViewModel ( [ 'errors' => $ service -> getMessages ( ) ] ) ; } } } return $ this -> redirect ( ) -> toUrl ( $ redirect ) ; }
Runs services specified in the configuration.

@throws \ScContent\Exception\DomainException
@return \Zend\Stdlib\ResponseInterface|\Zend\View\Model\ViewModel
Runs services specified in the configuration .