protected function vHostSetupChecker()
    {
        $translator = $this->getServiceLocator()->get('translator');

        $success = 0;
        $error = [];

        $platform = null;
        $module = null;


        if (!empty(getenv('MELIS_PLATFORM'))) {
            $platform = getenv('MELIS_PLATFORM');
        } else {
            $error['platform'] = $translator->translate('tr_melis_installer_step_1_1_no_paltform_declared');
        }

        if (!empty(getenv('MELIS_MODULE'))) {
            $module = getenv('MELIS_MODULE');
        } else {
            $error['module'] = $translator->translate('tr_melis_installer_step_1_1_no_module_declared');
        }

        if (empty($error)) {
            $success = 1;
        }

        $response = [
            'success' => $success,
            'errors' => $error,
            'data' => [
                'platform' => $platform,
                'module' => $module,
            ],
        ];

        return $response;
    }
protected function vHostSetupChecker()
    {
        $translator = $this->getServiceLocator()->get('translator');

        $success = 0;
        $error = [];

        $platform = null;
        $module = null;


        if (!empty(getenv('MELIS_PLATFORM'))) {
            $platform = getenv('MELIS_PLATFORM');
        } else {
            $error['platform'] = $translator->translate('tr_melis_installer_step_1_1_no_paltform_declared');
        }

        if (!empty(getenv('MELIS_MODULE'))) {
            $module = getenv('MELIS_MODULE');
        } else {
            $error['module'] = $translator->translate('tr_melis_installer_step_1_1_no_module_declared');
        }

        if (empty($error)) {
            $success = 1;
        }

        $response = [
            'success' => $success,
            'errors' => $error,
            'data' => [
                'platform' => $platform,
                'module' => $module,
            ],
        ];

        return $response;
    }
protected function vHostSetupChecker ( ) { $ translator = $ this -> getServiceLocator ( ) -> get ( 'translator' ) ; $ success = 0 ; $ error = [ ] ; $ platform = null ; $ module = null ; if ( ! empty ( getenv ( 'MELIS_PLATFORM' ) ) ) { $ platform = getenv ( 'MELIS_PLATFORM' ) ; } else { $ error [ 'platform' ] = $ translator -> translate ( 'tr_melis_installer_step_1_1_no_paltform_declared' ) ; } if ( ! empty ( getenv ( 'MELIS_MODULE' ) ) ) { $ module = getenv ( 'MELIS_MODULE' ) ; } else { $ error [ 'module' ] = $ translator -> translate ( 'tr_melis_installer_step_1_1_no_module_declared' ) ; } if ( empty ( $ error ) ) { $ success = 1 ; } $ response = [ 'success' => $ success , 'errors' => $ error , 'data' => [ 'platform' => $ platform , 'module' => $ module , ] , ] ; return $ response ; }
Checks if the Vhost platform and module variable are set
@return Array
Checks if the Vhost platform and module variable are set