src/Controller/Admin/Setup/Install.php
protected function step5(){

        $this->view->setData("step", "5");
        $this->view->setData("title", t("Installation | Install SuperUser"));


        if ($this->application->input->methodIs("post")) {


            //Because the database is still not fully,
            //we need to create it as follows

            $database = $this->application->createInstance("database",
                [
                    $this->application->config->get("setup.database.driver"), //get the database driver
                    $this->application->config->get("setup.database") //get all the database options and pass to the driver
                ]
            );

            //can't go back to 3 because we need database;
            $install = new Helpers\Install($this->application->config, $this->application->encrypt );
            $user    = $this->application->createInstance( User::class );

            //preform the installation;
            if(!$install->superadmin( $user , $this->application, $database )){

                // $this->view->setData("alerts", [ ["message"=>t('Success. The database was successfully configured'),"type"=>'success'] ] );
                $this->application->dispatcher->redirect("/admin/setup/install/4");

            }else{
                $this->application->dispatcher->redirect("/member/signin");
            }

        }

        //installation is complete
        $this->application->dispatcher->redirect("/admin/setup/install/4");

//        //Check we have all the information we need!
//        if(!$install->superadmin()){
//            $this->alert($install->getError(),_t('Something went wrong'),'error');
//            $this->set("step", "4");
//            $view->index() ;
//            return $this->output->setPageTitle(_t("Installation | Final Things"));
//        }
//        $this->alert(_t("Fantastico. All systems ready to go. Please make a note of the information below. If possible print this screen and keep it for your records") ,"","success");
//
//        //Return the install report as launch
//        $this->output->setPageTitle(_t("Installation Complete"));
//
//        return $view->readme();




        return;
    }
protected function step5(){

        $this->view->setData("step", "5");
        $this->view->setData("title", t("Installation | Install SuperUser"));


        if ($this->application->input->methodIs("post")) {


            //Because the database is still not fully,
            //we need to create it as follows

            $database = $this->application->createInstance("database",
                [
                    $this->application->config->get("setup.database.driver"), //get the database driver
                    $this->application->config->get("setup.database") //get all the database options and pass to the driver
                ]
            );

            //can't go back to 3 because we need database;
            $install = new Helpers\Install($this->application->config, $this->application->encrypt );
            $user    = $this->application->createInstance( User::class );

            //preform the installation;
            if(!$install->superadmin( $user , $this->application, $database )){

                // $this->view->setData("alerts", [ ["message"=>t('Success. The database was successfully configured'),"type"=>'success'] ] );
                $this->application->dispatcher->redirect("/admin/setup/install/4");

            }else{
                $this->application->dispatcher->redirect("/member/signin");
            }

        }

        //installation is complete
        $this->application->dispatcher->redirect("/admin/setup/install/4");

//        //Check we have all the information we need!
//        if(!$install->superadmin()){
//            $this->alert($install->getError(),_t('Something went wrong'),'error');
//            $this->set("step", "4");
//            $view->index() ;
//            return $this->output->setPageTitle(_t("Installation | Final Things"));
//        }
//        $this->alert(_t("Fantastico. All systems ready to go. Please make a note of the information below. If possible print this screen and keep it for your records") ,"","success");
//
//        //Return the install report as launch
//        $this->output->setPageTitle(_t("Installation Complete"));
//
//        return $view->readme();




        return;
    }
Step5. Registers an account for the master user/superadministrator. IF
Successfull will display a summary of the completed install process

@return void