protected function getDefaultServerParams() {
        $scriptName = realpath($_SERVER['SCRIPT_FILENAME']);
        //Default script name fallback
        if (!$scriptName) {
            $scriptName = getcwd() . DIRECTORY_SEPARATOR . 'app';
        }
        $params = [
            'DOCUMENT_ROOT' => getcwd(),
            'SCRIPT_FILENAME' => $scriptName,
        ];

        return $params;
    }
protected function getDefaultServerParams() {
        $scriptName = realpath($_SERVER['SCRIPT_FILENAME']);
        //Default script name fallback
        if (!$scriptName) {
            $scriptName = getcwd() . DIRECTORY_SEPARATOR . 'app';
        }
        $params = [
            'DOCUMENT_ROOT' => getcwd(),
            'SCRIPT_FILENAME' => $scriptName,
        ];

        return $params;
    }
protected function getDefaultServerParams ( ) { $ scriptName = realpath ( $ _SERVER [ 'SCRIPT_FILENAME' ] ) ; //Default script name fallback if ( ! $ scriptName ) { $ scriptName = getcwd ( ) . DIRECTORY_SEPARATOR . 'app' ; } $ params = [ 'DOCUMENT_ROOT' => getcwd ( ) , 'SCRIPT_FILENAME' => $ scriptName , ] ; return $ params ; }
Get default server parameters
@return array
Get default server parameters