Airship\Installer\Install::currentStep PHP Method

currentStep() public method

This is the landing point for the current step in the installation process.
public currentStep ( )
    public function currentStep()
    {
        $post = $this->post();
        switch ($this->data['step']) {
            case 1:
                if (!empty($post)) {
                    $this->processDatabase($post);
                    \Airship\redirect('/');
                    return null;
                }
                $this->data['drivers'] = $this->enumerateDrivers();
                return $this->display('database.twig');
            case 2:
                if (!empty($post)) {
                    $this->processAdminAccount($post);
                    if (!empty($post['fast_config'])) {
                        $this->data['step'] = 5;
                        $this->finalize($this->fastFinish($post));
                    }
                    \Airship\redirect('/');
                    return null;
                }
                return $this->display('admin_account.twig');
            case 3:
                if (!empty($post)) {
                    $this->processCabins($post);
                    \Airship\redirect('/');
                    return null;
                }
                $this->twig->addGlobal('is_https', $this->isHTTPS());
                return $this->display('cabins.twig');
            case 4:
                $this->testForTor();
                if (!empty($post)) {
                    $this->processConfig($post);
                    \Airship\redirect('/');
                    return null;
                }
                return $this->display('config.twig');
            case 5:
                if (!empty($post)) {
                    $this->finalize($post);
                    return null;
                }
                return $this->display('review.twig');
        }
        exit;
    }