public function process() { $this->isComplete = true; $options = $this->getOptions(); $proceedUrl = isset($options['proceedUrl']) ? $options['proceedUrl'] : null; $proceedUrlText = isset($options['proceedUrlText']) ? $options['proceedUrlText'] : null; $finishView = \View::make(Installer::view('finish'))->with(['proceedUrl' => $proceedUrl, 'proceedUrlText' => $proceedUrlText]); return $finishView->render(); }
public function process($prevStep) { if (!$this->hasPassed()) { $this->wait(); } $fieldsSchema = $this->getFieldsSchema(); $output = View::make(Installer::view('steps.inputStep'))->with(['step' => $this, 'fieldsSchema' => $fieldsSchema])->render(); $this->setOutput($output); return $output; }
public function getPrecedingSteps() { $options = $this->getOptions(); $inputData = null; if (isset($options['inputData'])) { $inputData = $options['inputData']; } //Step to get input $getInputStep = new InputStep(Installer::trans("installer.inputDbConfigStepName"), ['type' => "Input", 'fields' => ['host' => 'Host', 'database' => 'Database', 'username' => 'Username', 'password' => ['title' => 'Password', 'type' => 'string']], 'data' => $inputData, 'blocking' => true]); //Step to test DB connection $checkConnectionStep = new CheckDbConnectionStep(Installer::trans("installer.checkDbConfigStepName"), ['blocking' => true]); $checkConnectionStep->setSourceStep($getInputStep); $this->setSourceStep($getInputStep); return array($getInputStep, $checkConnectionStep); }
public function renderErrorView() { $errorView = View::make(Installer::view('steps.errors'))->with(['step' => $this]); $this->setOutput($errorView->render()); }