protected function makeConfig() {
        $this->_checkConfig();

        // Construct the Configuration object
        if (empty($this->_configuration) || !($this->_configuration instanceof Configuration)) {
            $this->_configuration = new Configuration(trim($this->_config['app']['name']));
            // Local Environment
            if (isset($this->_config['environment']) && (strcasecmp($this->_config['environment'], 'local') == 0))
                $this->_configuration->setLocal();
            
            if (isset($this->_config['app']['preventMultipleLogins']) 
                && (strcasecmp($this->_config['app']['preventMultipleLogins'], 'true') == 0 || $this->_config['app']['preventMultipleLogins']))
                $this->_configuration->setPreventMultipleLogins();

            // App Configuration
            // Default Grade
            if (isset($this->_config['app']['defaultGrade']))
                $this->_configuration->setDefaultGrade(trim($this->_config['app']['defaultGrade']));
            // Log Level
            if (isset($this->_config['app']['logLevel']))
                $this->_configuration->setLogLevel(trim($this->_config['app']['logLevel']));

            //Track Analytics
            if (isset($this->_config['app']['trackAnalytics']))
                $this->_configuration->setLogAnalytics(trim($this->_config['app']['trackAnalytics']));

            // Api Configuration
            // Url
            $this->_configuration->setApiUrl(trim($this->_config['api']['url']));
            // Shared Key
            $sharedKey = getenv('NATIVE5_API_SHARED_KEY');
            if(empty($sharedKey))
                $this->_configuration->setSharedKey(trim($this->_config['api']['sharedKey']));
            else 
                $this->_configuration->setSharedKey(trim($sharedKey));
            // Secret Key
            $secretKey = getenv('NATIVE5_API_SECRET_KEY');
            if(empty($secretKey)) 
                $this->_configuration->setSecretKey(trim($this->_config['api']['secretKey']));
            else
                $this->_configuration->setSecretKey(trim($secretKey));
            if (isset($this->_config['nativeBinaryOnly']))
                $this->_configuration->setNativeBinary(trim($this->_config['nativeBinaryOnly']));

            // Set the raw config
            $this->_configuration->setRawConfiguration($this->_config);
        }

        return $this->_configuration;
    }
protected function makeConfig() {
        $this->_checkConfig();

        // Construct the Configuration object
        if (empty($this->_configuration) || !($this->_configuration instanceof Configuration)) {
            $this->_configuration = new Configuration(trim($this->_config['app']['name']));
            // Local Environment
            if (isset($this->_config['environment']) && (strcasecmp($this->_config['environment'], 'local') == 0))
                $this->_configuration->setLocal();
            
            if (isset($this->_config['app']['preventMultipleLogins']) 
                && (strcasecmp($this->_config['app']['preventMultipleLogins'], 'true') == 0 || $this->_config['app']['preventMultipleLogins']))
                $this->_configuration->setPreventMultipleLogins();

            // App Configuration
            // Default Grade
            if (isset($this->_config['app']['defaultGrade']))
                $this->_configuration->setDefaultGrade(trim($this->_config['app']['defaultGrade']));
            // Log Level
            if (isset($this->_config['app']['logLevel']))
                $this->_configuration->setLogLevel(trim($this->_config['app']['logLevel']));

            //Track Analytics
            if (isset($this->_config['app']['trackAnalytics']))
                $this->_configuration->setLogAnalytics(trim($this->_config['app']['trackAnalytics']));

            // Api Configuration
            // Url
            $this->_configuration->setApiUrl(trim($this->_config['api']['url']));
            // Shared Key
            $sharedKey = getenv('NATIVE5_API_SHARED_KEY');
            if(empty($sharedKey))
                $this->_configuration->setSharedKey(trim($this->_config['api']['sharedKey']));
            else 
                $this->_configuration->setSharedKey(trim($sharedKey));
            // Secret Key
            $secretKey = getenv('NATIVE5_API_SECRET_KEY');
            if(empty($secretKey)) 
                $this->_configuration->setSecretKey(trim($this->_config['api']['secretKey']));
            else
                $this->_configuration->setSecretKey(trim($secretKey));
            if (isset($this->_config['nativeBinaryOnly']))
                $this->_configuration->setNativeBinary(trim($this->_config['nativeBinaryOnly']));

            // Set the raw config
            $this->_configuration->setRawConfiguration($this->_config);
        }

        return $this->_configuration;
    }
protected function makeConfig ( ) { $ this -> _checkConfig ( ) ; // Construct the Configuration object if ( empty ( $ this -> _configuration ) || ! ( $ this -> _configuration instanceof Configuration ) ) { $ this -> _configuration = new Configuration ( trim ( $ this -> _config [ 'app' ] [ 'name' ] ) ) ; // Local Environment if ( isset ( $ this -> _config [ 'environment' ] ) && ( strcasecmp ( $ this -> _config [ 'environment' ] , 'local' ) == 0 ) ) $ this -> _configuration -> setLocal ( ) ; if ( isset ( $ this -> _config [ 'app' ] [ 'preventMultipleLogins' ] ) && ( strcasecmp ( $ this -> _config [ 'app' ] [ 'preventMultipleLogins' ] , 'true' ) == 0 || $ this -> _config [ 'app' ] [ 'preventMultipleLogins' ] ) ) $ this -> _configuration -> setPreventMultipleLogins ( ) ; // App Configuration // Default Grade if ( isset ( $ this -> _config [ 'app' ] [ 'defaultGrade' ] ) ) $ this -> _configuration -> setDefaultGrade ( trim ( $ this -> _config [ 'app' ] [ 'defaultGrade' ] ) ) ; // Log Level if ( isset ( $ this -> _config [ 'app' ] [ 'logLevel' ] ) ) $ this -> _configuration -> setLogLevel ( trim ( $ this -> _config [ 'app' ] [ 'logLevel' ] ) ) ; //Track Analytics if ( isset ( $ this -> _config [ 'app' ] [ 'trackAnalytics' ] ) ) $ this -> _configuration -> setLogAnalytics ( trim ( $ this -> _config [ 'app' ] [ 'trackAnalytics' ] ) ) ; // Api Configuration // Url $ this -> _configuration -> setApiUrl ( trim ( $ this -> _config [ 'api' ] [ 'url' ] ) ) ; // Shared Key $ sharedKey = getenv ( 'NATIVE5_API_SHARED_KEY' ) ; if ( empty ( $ sharedKey ) ) $ this -> _configuration -> setSharedKey ( trim ( $ this -> _config [ 'api' ] [ 'sharedKey' ] ) ) ; else $ this -> _configuration -> setSharedKey ( trim ( $ sharedKey ) ) ; // Secret Key $ secretKey = getenv ( 'NATIVE5_API_SECRET_KEY' ) ; if ( empty ( $ secretKey ) ) $ this -> _configuration -> setSecretKey ( trim ( $ this -> _config [ 'api' ] [ 'secretKey' ] ) ) ; else $ this -> _configuration -> setSecretKey ( trim ( $ secretKey ) ) ; if ( isset ( $ this -> _config [ 'nativeBinaryOnly' ] ) ) $ this -> _configuration -> setNativeBinary ( trim ( $ this -> _config [ 'nativeBinaryOnly' ] ) ) ; // Set the raw config $ this -> _configuration -> setRawConfiguration ( $ this -> _config ) ; } return $ this -> _configuration ; }
makeConfig Wrap the associative configuration array inside a Configuration class

@access public
@return void
@note the ftp configuration should be of the following format:
mixed[] $configuration {
@type string "host" domain name or IP address of ftp host
@type string "port" port where ftp service is running on the host
@type string "user" ftp username
@type string "private_key" ftp user ssh private key for login into ftp host
@type string "public_key" ftp user ssh public key for login into ftp host
@type string "directory" directory on ftp host (optional)
}
makeConfig Wrap the associative configuration array inside a Configuration class