private function _loadSettingsFromFile()
    {
        $filename = $this->getConfigPath().'settings.php';

        if (!file_exists($filename)) {
            throw new OneLogin_Saml2_Error(
                'Settings file not found: %s',
                OneLogin_Saml2_Error::SETTINGS_FILE_NOT_FOUND,
                array($filename)
            );
        }

        /** @var array $settings */
        include $filename;

        // Add advance_settings if exists

        $advancedFilename = $this->getConfigPath().'advanced_settings.php';

        if (file_exists($advancedFilename)) {
            /** @var array $advancedSettings */
            include $advancedFilename;
            $settings = array_merge($settings, $advancedSettings);
        }


        return $this->_loadSettingsFromArray($settings);
    }
private function _loadSettingsFromFile()
    {
        $filename = $this->getConfigPath().'settings.php';

        if (!file_exists($filename)) {
            throw new OneLogin_Saml2_Error(
                'Settings file not found: %s',
                OneLogin_Saml2_Error::SETTINGS_FILE_NOT_FOUND,
                array($filename)
            );
        }

        /** @var array $settings */
        include $filename;

        // Add advance_settings if exists

        $advancedFilename = $this->getConfigPath().'advanced_settings.php';

        if (file_exists($advancedFilename)) {
            /** @var array $advancedSettings */
            include $advancedFilename;
            $settings = array_merge($settings, $advancedSettings);
        }


        return $this->_loadSettingsFromArray($settings);
    }
private function _loadSettingsFromFile ( ) { $ filename = $ this -> getConfigPath ( ) . 'settings.php' ; if ( ! file_exists ( $ filename ) ) { throw new OneLogin_Saml2_Error ( 'Settings file not found: %s' , OneLogin_Saml2_Error :: SETTINGS_FILE_NOT_FOUND , array ( $ filename ) ) ; } /** @var array $settings */ include $ filename ; // Add advance_settings if exists $ advancedFilename = $ this -> getConfigPath ( ) . 'advanced_settings.php' ; if ( file_exists ( $ advancedFilename ) ) { /** @var array $advancedSettings */ include $ advancedFilename ; $ settings = array_merge ( $ settings , $ advancedSettings ) ; } return $ this -> _loadSettingsFromArray ( $ settings ) ; }
Loads settings info from the settings file

@return bool True if the settings info is valid

@throws OneLogin_Saml2_Error

@suppress PhanUndeclaredVariable
Loads settings info from the settings file