src/Core/CoreKernel.php
protected function redirectToInstaller()
    {
        // Error if installer not available
        if (!file_exists(Director::publicFolder() . '/install.php')) {
            throw new HTTPResponse_Exception(
                'SilverStripe Framework requires database configuration defined via .env',
                500
            );
        }

        // Redirect to installer
        $response = new HTTPResponse();
        $response->redirect(Director::absoluteURL('install.php'));
        throw new HTTPResponse_Exception($response);
    }
protected function redirectToInstaller()
    {
        // Error if installer not available
        if (!file_exists(Director::publicFolder() . '/install.php')) {
            throw new HTTPResponse_Exception(
                'SilverStripe Framework requires database configuration defined via .env',
                500
            );
        }

        // Redirect to installer
        $response = new HTTPResponse();
        $response->redirect(Director::absoluteURL('install.php'));
        throw new HTTPResponse_Exception($response);
    }
protected function redirectToInstaller ( ) { // Error if installer not available if ( ! file_exists ( Director :: publicFolder ( ) . '/install.php' ) ) { throw new HTTPResponse_Exception ( 'SilverStripe Framework requires database configuration defined via .env' , 500 ) ; } // Redirect to installer $ response = new HTTPResponse ( ) ; $ response -> redirect ( Director :: absoluteURL ( 'install.php' ) ) ; throw new HTTPResponse_Exception ( $ response ) ; }
If missing configuration, redirect to install.php
If missing configuration redirect to install . php