/**
  * Constructor
  *
  * @param string     $host          Database host information
  * @param string     $user          Database user information
  * @param string     $password      Database password information
  * @param int        $port          Database port information
  * @param bool       $verifyInstall If verify install
  * @param Translator $translator    Translator Service
  *                                  necessary for install wizard
  */
 public function __construct($host, $user, $password, $port, $verifyInstall = true, Translator $translator = null)
 {
     $this->host = $host;
     $this->user = $user;
     $this->password = $password;
     $this->port = $port;
     parent::__construct($verifyInstall);
 }
Example #2
0
 /**
  * Constructor
  *
  * @param bool       $verifyInstall If verify install
  * @param Translator $translator    Translator Service
  *                                  necessary for install wizard
  */
 public function __construct($verifyInstall = true, Translator $translator = null)
 {
     $this->translator = $translator;
     $this->validationMessages['php_version'] = array('text' => $this->getI18nPhpVersionText('5.4', phpversion(), true), 'hint' => $this->getI18nPhpVersionHint(), 'status' => true);
     foreach ($this->directoriesToBeWritable as $directory) {
         $this->validationMessages[$directory] = array('text' => '', 'hint' => '', 'status' => true);
     }
     foreach ($this->minServerConfigurationNecessary as $key => $value) {
         $this->validationMessages[$key] = array('text' => '', 'hint' => $this->getI18nConfigHint(), 'status' => true);
     }
     foreach ($this->extensions as $extension) {
         $this->validationMessages[$extension] = array('text' => '', 'hint' => $this->getI18nExtensionHint(), 'status' => true);
     }
     parent::__construct($verifyInstall);
 }