src/Core/CoreKernel.php
protected function validateDatabase()
    {
        $databaseConfig = DB::getConfig();
        // Gracefully fail if no DB is configured
        if (empty($databaseConfig['database'])) {
            $this->detectLegacyEnvironment();
            $this->redirectToInstaller();
        }
    }
protected function validateDatabase()
    {
        $databaseConfig = DB::getConfig();
        // Gracefully fail if no DB is configured
        if (empty($databaseConfig['database'])) {
            $this->detectLegacyEnvironment();
            $this->redirectToInstaller();
        }
    }
protected function validateDatabase ( ) { $ databaseConfig = DB :: getConfig ( ) ; // Gracefully fail if no DB is configured if ( empty ( $ databaseConfig [ 'database' ] ) ) { $ this -> detectLegacyEnvironment ( ) ; $ this -> redirectToInstaller ( ) ; } }
Check that the database configuration is valid, throwing an HTTPResponse_Exception if it's not

@throws HTTPResponse_Exception
Check that the database configuration is valid throwing an HTTPResponse_Exception if it s not