src/ScContent/Controller/Installation/RequirementsController.php
public function configurationAction()
    {
        $redirect     = $this->getRedirect();
        $installation = $this->getInstallation();
        $step         = $installation->getCurrentStep();
        $member       = $step->getCurrentMember();
        $validator    = $this->getValidator();

        if (! $validator instanceof PhpIni) {
            throw new DomainException(sprintf(
                $this->scTranslate(
                    "An error occurred while installing the module '%s', step '%s', member '%s'. "
                    . "Validator must be an instance of class '%s', '%s' instead."
                ),
                $installation->getModuleName(),
                $step->getName(),
                $member->getName(),
                'ScContent\Validator\Installation\PhpIni',
                is_object($validator) ? get_class($validator) : gettype($validator)
            ));
        }

        $failures = [];
        foreach ($member as $requirement) {
            if (! $validator->isValid($requirement)) {
                if (! isset($requirement['failure_message'])) {
                    throw new InvalidArgumentException(sprintf(
                        $this->scTranslate(
                            "An error occurred while installing the module '%s', step '%s', member '%s'. "
                            . "Missing option 'failure_message' for '%s' param."
                        ),
                        $installation->getModuleName(),
                        $step->getName(),
                        $member->getName(),
                        $requirement['name']
                    ));
                }
                $failures[] = [
                    $requirement['name'],
                    (false === $validator->getValueFromCallback($requirement['name']))
                             ? 'false'
                             : $validator->getValueFromCallback($requirement['name']),
                    $requirement['failure_message']
                ];
            }
        }

        if (! empty($failures)) {
            return new ViewModel([
                'errors' => ['table' => [
                    'head' => ['Php.ini option', 'Value', 'Requirement'],
                    'body' => $failures
                ]]
            ]);
        }
        return $this->redirect()->toUrl($redirect);
    }
public function configurationAction()
    {
        $redirect     = $this->getRedirect();
        $installation = $this->getInstallation();
        $step         = $installation->getCurrentStep();
        $member       = $step->getCurrentMember();
        $validator    = $this->getValidator();

        if (! $validator instanceof PhpIni) {
            throw new DomainException(sprintf(
                $this->scTranslate(
                    "An error occurred while installing the module '%s', step '%s', member '%s'. "
                    . "Validator must be an instance of class '%s', '%s' instead."
                ),
                $installation->getModuleName(),
                $step->getName(),
                $member->getName(),
                'ScContent\Validator\Installation\PhpIni',
                is_object($validator) ? get_class($validator) : gettype($validator)
            ));
        }

        $failures = [];
        foreach ($member as $requirement) {
            if (! $validator->isValid($requirement)) {
                if (! isset($requirement['failure_message'])) {
                    throw new InvalidArgumentException(sprintf(
                        $this->scTranslate(
                            "An error occurred while installing the module '%s', step '%s', member '%s'. "
                            . "Missing option 'failure_message' for '%s' param."
                        ),
                        $installation->getModuleName(),
                        $step->getName(),
                        $member->getName(),
                        $requirement['name']
                    ));
                }
                $failures[] = [
                    $requirement['name'],
                    (false === $validator->getValueFromCallback($requirement['name']))
                             ? 'false'
                             : $validator->getValueFromCallback($requirement['name']),
                    $requirement['failure_message']
                ];
            }
        }

        if (! empty($failures)) {
            return new ViewModel([
                'errors' => ['table' => [
                    'head' => ['Php.ini option', 'Value', 'Requirement'],
                    'body' => $failures
                ]]
            ]);
        }
        return $this->redirect()->toUrl($redirect);
    }
public function configurationAction ( ) { $ redirect = $ this -> getRedirect ( ) ; $ installation = $ this -> getInstallation ( ) ; $ step = $ installation -> getCurrentStep ( ) ; $ member = $ step -> getCurrentMember ( ) ; $ validator = $ this -> getValidator ( ) ; if ( ! $ validator instanceof PhpIni ) { throw new DomainException ( sprintf ( $ this -> scTranslate ( "An error occurred while installing the module '%s', step '%s', member '%s'. " . "Validator must be an instance of class '%s', '%s' instead." ) , $ installation -> getModuleName ( ) , $ step -> getName ( ) , $ member -> getName ( ) , 'ScContent\Validator\Installation\PhpIni' , is_object ( $ validator ) ? get_class ( $ validator ) : gettype ( $ validator ) ) ) ; } $ failures = [ ] ; foreach ( $ member as $ requirement ) { if ( ! $ validator -> isValid ( $ requirement ) ) { if ( ! isset ( $ requirement [ 'failure_message' ] ) ) { throw new InvalidArgumentException ( sprintf ( $ this -> scTranslate ( "An error occurred while installing the module '%s', step '%s', member '%s'. " . "Missing option 'failure_message' for '%s' param." ) , $ installation -> getModuleName ( ) , $ step -> getName ( ) , $ member -> getName ( ) , $ requirement [ 'name' ] ) ) ; } $ failures [ ] = [ $ requirement [ 'name' ] , ( false === $ validator -> getValueFromCallback ( $ requirement [ 'name' ] ) ) ? 'false' : $ validator -> getValueFromCallback ( $ requirement [ 'name' ] ) , $ requirement [ 'failure_message' ] ] ; } } if ( ! empty ( $ failures ) ) { return new ViewModel ( [ 'errors' => [ 'table' => [ 'head' => [ 'Php.ini option' , 'Value' , 'Requirement' ] , 'body' => $ failures ] ] ] ) ; } return $ this -> redirect ( ) -> toUrl ( $ redirect ) ; }
Checks the settings in the php.ini file in accordance with the
configuration of the module. If the settings are not compatible,
the installation process stops and displays the information message.

@return \Zend\Stdlib\ResponseInterface|\Zend\View\Model\ViewModel
Checks the settings in the php . ini file in accordance with the configuration of the module . If the settings are not compatible the installation process stops and displays the information message .